Skip to content

Commit

Permalink
Fix typo in useForceUpdate (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelVerschraegen authored Nov 18, 2021
1 parent 1bca87a commit c0290ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useForceUpdate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useReducer } from "react";

// the second arguemnt of useReducer is the dispatch function
// the second argument of useReducer is the dispatch function
// after calling dispatch we will set a new object in the state
// if the state will change by reference it will force rerender of the component

Expand Down

0 comments on commit c0290ea

Please sign in to comment.