-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to React 18.2 and add thin cljs hooks layer (#242)
This upgrades React to 18.2 and migrates to the new `createRoot` api. In addition, we add a thin layer over react hooks for more ergonomic cljs usage: - the fn passed to `useEffect` returns `js/undefined` for any non-function value - hooks that can take a deps array default to an empty array, and convert vectors/sequences to arrays - `useState` and `useRef` return values that behave like atoms Co-authored-by: Matthew Huebert <mhuebert@gmail.com>
- Loading branch information
Showing
5 changed files
with
108 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3qePCgpcmuVcJNqR8mK6LSfWdRT2 | ||
8j4R6ZW8WbFaZJhWFH3rAv4eY2J |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters