Use hooks
See original GitHub issueWe should use React hooks once they land in a stable release! Here are a couple first ideas:
- Rework theming system to be based on
useContext
to avoid DevTools bloat withThemeConsumer
components - Implement
useTheme
hook (see #2340)-
Maybe removewithTheme
HOC in favor of the hook?
-
- Rework StyleSheet infrastructure to use hooks
Any other ideas for how we could leverage hooks?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:56
- Comments:27 (14 by maintainers)
Top Results From Across the Web
useHooks - Easy to understand React Hook recipes
Hooks are a feature in React that allow you use state and other React features without writing classes. This website provides easy to...
Read more >Hooks at a Glance - React
Hooks are functions that let you “hook into” React state and lifecycle features from function components. Hooks don't work inside classes — they...
Read more >streamich/react-use: React Hooks - GitHub
React Hooks — . Contribute to streamich/react-use development by creating an account on GitHub. ... Collection of essential React Hooks.
Read more >usehooks-ts
Welcome to the documentation of usehooks-ts, a React hooks library, ready to use, written in typescript.
Read more >Useful React Hooks That You Can Use In Your Projects
Hooks are simply functions that allow you to hook into or make use of React features. They were introduced at the React Conf...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Something like:
Is that possible, using a TTL as a hook?
is this enough to get
theme
?