create-react-library
why-did-you-render
create-react-library | why-did-you-render | |
---|---|---|
5 | 47 | |
4,794 | 10,799 | |
- | 0.6% | |
2.6 | 7.1 | |
about 1 year ago | 4 days ago | |
JavaScript | JavaScript | |
- | 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.
create-react-library
-
How are you bundling a React Component Library?
At first i thought that this was THE solution but looking deeper at the source code, this tool is a wrapper around a wrapper around a wrapper.... Don't get me wrong, it probably works, but it's currently using a rollup configuration that was created in 2018, the package itself has not seen any updates in 17 months and has 106 open issues. Also the owner says himself that he's not able to work that much on it anymore and suggest to use TSDX which in return hasn't been updated in several months, many open issues and extensive customization is recommended with patch-package which already in itself is a red-flag :(
-
Awesome React Resources
create-react-library - CLI for creating reusable, modern React libraries using Rollup and create-react-app.
-
Build your own styled-components
Using create-react-library to scaffold a React component library.
-
How Did I build My First React Package
create-react-library
-
Looking for recommendation for react component starter
Just found this: https://github.com/transitive-bullshit/create-react-library
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?
tsdx - Zero-config CLI for TypeScript package development
craco - Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
turborepo - Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turborepo and Turbopack. [Moved to: https://github.com/vercel/turbo]
use-what-changed - A React hook and an easy to use babel-pugin to debug various React official hooks
rollup-react-example - An example React application using Rollup with ES modules, dynamic imports, Service Workers, and Flow.
nextjs-rewrite-test
razzle - ✨ Create server-rendered universal JavaScript applications with no configuration
react-render-tracker - React render tracker – a tool to discover performance issues related to unintentional re-renders and unmounts
patch-package - Fix broken node modules instantly 🏃🏽♀️💨
react-devtools - An extension that allows inspection of React component hierarchy in the Chrome and Firefox Developer Tools.
vue3-component-library - This is a template for building vue components library.Project makes use of vue3.0 with rollup configuration to build treeshakable imports and Postcss for compilation of css