react-error-boundary
react-sweet-state
react-error-boundary | react-sweet-state | |
---|---|---|
14 | 6 | |
6,445 | 856 | |
- | 0.8% | |
6.8 | 4.8 | |
2 months ago | about 2 months ago | |
TypeScript | JavaScript | |
MIT License | 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.
react-error-boundary
-
Class vs functional components
I use the use-error-boundary module for this just to never have to write a class component myself!
-
You're in an interview for a react position and they ask you "which is better, functional or class based components" how would you answer?
Requires a dependency but you can absolutely use error boundaries with functional components via react-error-boundary: https://github.com/bvaughn/react-error-boundary
-
Is defining a function call inside a useEffect a good practice ?
as for checking errors: https://github.com/bvaughn/react-error-boundary
-
How to handle errors in React: full guide
For those of you, who hate re-inventing the wheel or just prefer libraries for already solved problems, there is a nice one that implements a flexible ErrorBoundary component and has a few useful utils similar to those described above: GitHub - bvaughn/react-error-boundary
-
I have an app written in old redux with React classes and try to migrate it to the latest version with hooks. What would you recommend to read/watch?
Use https://github.com/bvaughn/react-error-boundary for error boundaries and you won't have to write one yourself.
-
best way to convince OOPers to give functions a go?
There's no reason to manually write an error boundary as a class component yourself, either, given that https://github.com/bvaughn/react-error-boundary exists.
-
Should we use Functional or Class based Components?
Yeah, and even in that case, you should probably be using https://github.com/bvaughn/react-error-boundary rather than writing your own from scratch.
-
Should I still use class based components?
they can https://github.com/bvaughn/react-error-boundary (this is from the react team) doesn't matter how it works internally, im not going to write a class just for error handling.
- "bulletproof-react" is a hidden treasure of React best practices!
-
Derived State?
i would not bother with classes tbh, use this: https://github.com/bvaughn/react-error-boundary it's made by a react core team member and they even recommend it.
react-sweet-state
-
I have an app written in old redux with React classes and try to migrate it to the latest version with hooks. What would you recommend to read/watch?
For none server related state have a look at https://github.com/pmndrs/zustand or https://atlassian.github.io/react-sweet-state
- What’s your go to state management library these days?
-
State management for a new ecommerce project
Have a look at https://atlassian.github.io/react-sweet-state and we used it in a pretty large financial & trading App. I can say it's much simpler than Redux and does the job!
- which state manager you are using with React 18?
- I need a good State Manager for React Native ASAP
-
What are popular ways of state management in React Native
https://github.com/atlassian/react-sweet-state Developed and maintained by Atlassian. I am using it in ZudVPN and tbh I never looked back to other state management libraries. It is simple, intuitive and does not require a top component Provider like the Context API.
What are some alternatives?
react-hook-form - 📋 React Hooks for form state management and validation (Web + React Native)
redux-oidc - A package for managing OpenID Connect authentication in ReactJS / Redux apps
Sentry - Developer-first error tracking and performance monitoring
ZudVPN - A mobile application to deploy private VPN servers in the cloud with DNS ad-blocking and other features
react-router - Declarative routing for React
react-3ducks - Simple state management solution for React
naming-cheatsheet - Comprehensive language-agnostic guidelines on variables naming. Home of the A/HC/LC pattern.
resumegen - ReactJS Basic Resume Generator
redux-essentials-example-app - Example app for the Redux Essentials tutorial
stack-underflow-mern-gql - Feature-rich ‘stack overflow’ (QnA site) clone. Made using MERN + GraphQL stack.
scaffdog - :dog: scaffdog is Markdown driven scaffolding tool.