๐—ฅ๐—ฒ๐—ฎ๐—ฐ๐˜.๐—ท๐˜€ ๐—–๐—น๐—ฒ๐—ฎ๐—ป ๐—–๐—ผ๐—ฑ๐—ฒ ๐—ง๐—ถ๐—ฝ๐˜€

Write better React code. Follow these rules to keep your project clean.

Simplify your objects. Use destructuring to pull values. Use the spread operator to add new data.

Use function components. They are easier to read than class components.

Give each useEffect one job. Split a large effect into small ones. This keeps logic clear.

Avoid too many state variables. Put related data in one object. This prevents typos.

Destructure your props in the function signature. You see what the component needs.

Choose the right data tool for the job:

Source: https://dev.to/kkr0423/reactjs-clean-code-intermediate-180g