usehooks
why-did-you-render
usehooks | why-did-you-render | |
---|---|---|
38 | 47 | |
400 | 10,814 | |
- | 0.7% | |
0.0 | 7.1 | |
over 2 years ago | 9 days ago | |
JavaScript | JavaScript | |
The Unlicense | 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.
usehooks
- UseHooks – A Collection of Server Component Safe React Hooks
- useHooks – A collection of Server Component safe React Hooks
-
What library or tool is causing you the most pain right now?
That is the case for many custom hooks you could build. Sure, you can find libraries implementing those for you, but it doesn't change the fact that React apps still relies a lot on useEffect hook.
- can you help me understand the most common scenarios for writing a custom hook?
-
React hooks with real-world project examples
A collection of useful React hooks by the community: https://usehooks.com/
-
Struggling to learn react.js
useHooks.com has some recipes for pretty common use cases of hooks, once you are acquainted with React's basics.
-
Tools to track re-renders
There’s an open source hook on https://usehooks.com to track component updates.
- What are some good resources for learning advanced implementations of hooks?
why-did-you-render
- Too many rerenders in react?
- Lag issues with RN
- After a year developing with react, I think I've been doing all wrong
- How can I stop a component from reloading all the time?.
-
How to speed up React Native screen when full of TextInput?
Check out why-did-you-render. It may tell you some more information.
-
Why and How We Retired Elm at Culture Amp
It's a combination of many things, but imo one of the worst is all the footguns regarding state and the rerenders they cause
https://emnudge.dev/blog/react-hostage
It's so easy, that we monkey patch react to debug it https://github.com/welldone-software/why-did-you-render
Plus the vdom... Isn't great, the bundle size puts react at an inherit disadvantage, and the community has a knack for over reliance on bloated packages
-
7 Proven Practices to Boost Development Speed and Project Quality
When we implemented the MVP of the fintech app, we had a quite complicated form. At that time, I was still young and inexperienced. And eventually, we realized that our project was slowing down. We had to spend additional hours figuring out the reason. We had many unnecessary re-renders because we ignored basic rules related to props in React. I wanted to do everything possible to avoid such situations in the future. So, I added to the project linters like this and an additional starting configuration to package.json to run why-did-you-render. In short, this plugin issues a warning if something is re-rendered unnecessarily and suggests how to avoid it. Also, we included running Lighthouse in headless mode. Some people say that premature optimizations are bad, but for me, it's a principle: do it right from the start.
- Free code review
-
Is there a way to detect unwanted mutations in a React component?
maybe somethin like https://github.com/welldone-software/why-did-you-render
-
React Dev Tools: much worse experience with functions/hooks
This might help you out a bit.
What are some alternatives?
react - Cheatsheets for experienced React developers getting started with TypeScript
craco - Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
react-redux-links - Curated tutorial and resource links I've collected on React, Redux, ES6, and more
use-what-changed - A React hook and an easy to use babel-pugin to debug various React official hooks
awesome-react-hooks - A curated list about React Hooks
nextjs-rewrite-test
30-Days-Of-React - 30 Days of React challenge is a step by step guide to learn React in 30 days. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
react-render-tracker - React render tracker – a tool to discover performance issues related to unintentional re-renders and unmounts
reactjs-interview-questions - List of top 500 ReactJS Interview Questions & Answers....Coding exercise questions are coming soon!!
react-devtools - An extension that allows inspection of React component hierarchy in the Chrome and Firefox Developer Tools.
rockylinux.org - The official website of the Rocky Linux project.
razzle - ✨ Create server-rendered universal JavaScript applications with no configuration