Standards
Components are PascalCased
Use React Plugin for ESLint
useState only for dynamic data.
Best practices
Organizing Imports
Large props should not be HTML inline
Use TypeScript or PropTypes
Examples
useEffect
Forward Props in Groups
useContext
Custom Hook : Member Activity Log
useReducer
To make your code simple and easy to understand. Large / complex props should be separated from your HTML code.
Please Login or Register to comment
Please Login or Register to comment