use-context-selector
awesome-react
use-context-selector | awesome-react | |
---|---|---|
27 | 33 | |
2,481 | 62,008 | |
- | - | |
6.5 | 6.2 | |
about 7 hours ago | 10 days ago | |
TypeScript | ||
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
use-context-selector
-
Having too many contexts - is it a problem?
Use jotai, or as someone else mentioned, zustand. React Context out of the box requires a very deliberate mental model due to a lack of tooling around selecting slices of state. This is why packages like react-context-selector exist: https://github.com/dai-shi/use-context-selector
-
Truly the best time to be a cs student
Unless I've missed it, context doesn't have selector IIRC. You'd have to use a third party solution useContextSelector
-
use-next-context: Performance-optimized React Context API.
How does this differ from https://github.com/dai-shi/use-context-selector?
-
Tips for managing and organizing complex state with React context
you can always split out context state or use a library to help with rerender issues like https://github.com/dai-shi/use-context-selector, or just switch to jotai or something else if you want something more ergonomic or better design patterns.
-
ReactJs - Useless re-renders when a context changes - HOW TO SOLVE IT ?
If you don't want to swap out useContext, you could always use useContextSelector, which helps you limit what props in the context should rerender the component.
-
React I Love You, But You're Bringing Me Down
I wouldn't call this easy
-
is Redux the first state management library you'll advise beginners to learn these days?
It wouldn't be clear to anyone learning Context API either. At least, not using official docs. Because Context API is not supposed for state management, and if you for some unknown reasons try to roll your own state management on top of it, you have to use tricky libraries to work around the issues resulting from such abuse.
-
What are some React Tricks/Tips for React Devs?
Any time anything in the context changes, any component that is consuming it will re-render. If you use it for frequently changed values, this library is needed to reduce unnecessary re-renders.
-
Surprising Performance Lessons from React Microfrontends in Production
Use of this implementation of useContextSelector
-
Inflist, an experiment using PureScript and React
Another technology I use regularly is Redux. But this time I wanted to manage the global state in a simpler and clearer way just using React hooks. I decided to go with a simple useReducer combined with theuseContextSelector hook which will avoid the whole application’s re-render caused by the native useContext hook.
awesome-react
-
✨7 Github Repositories to Master React
View on GitHub
-
Angular vs. React vs. Vue.js: Comparing performance
One thing that stands out from React’s history and creation is the power of open source projects and an active community. React's ecosystem provides a vast array of third-party libraries and tools that extend its functionality and make it easier to create performant applications.
-
Are there any react js best practices websites?
Two: https://patterns.dev/ and https://github.com/enaqx/awesome-react
-
Best practices repos
I like awesome-react
-
Free resources that helped me master React as a Self Taught Web Developer
Awesome list for React on GitHub
-
Better way to think when creating components (small front end tip #1)
sure, here are ton of them: https://github.com/enaqx/awesome-react, but let me share some of the best ones:
-
Ask HN: React UI Frameworks
I can’t get my hands on a beautiful UI framework I saw in one Show HN project few months ago. It is not part of https://github.com/brillout/awesome-react-components#ui-frameworks nor https://github.com/enaqx/awesome-react#react-component-libraries. Do you know any nice UI frameworks / component libraries which are not on those lists ?
-
New to React, What are some Must Know libraries?
You can find a lot of nice tools and libraries in the React Ecosystem @ https://github.com/enaqx/awesome-react
-
Who's code do you read?
There is also this... https://github.com/enaqx/awesome-react
- Cambio de tecnología
What are some alternatives?
zustand - 🐻 Bear necessities for state management in React
awesome-react-components - Curated List of React Components & Libraries.
reselect - Selector library for Redux
awesome-vue - 🎉 A curated list of awesome things related to Vue.js
Next.js - The React Framework
awesome-css - :art: A curated contents of amazing CSS :)
react-tracked - State usage tracking with Proxies. Optimize re-renders for useState/useReducer, React Redux, Zustand and others.
awesome-html5 - :memo: A curated list of awesome HTML5 resources
formik - Build forms in React, without the tears 😭 [Moved to: https://github.com/jaredpalmer/formik]
awesome-material-ui - A curated list of Material-UI resources and related projects. The main idea is that everyone can contribute here, so we can have a central repository of informations about Material-UI that we keep up-to-date
why-did-you-render - why-did-you-render by Welldone Software monkey patches React to notify you about potentially avoidable re-renders. (Works with React Native as well.)
awesome-tailwindcss - 😎 Awesome things related to Tailwind CSS