#Useeffect
2 notas · última:
React Best Practices Ever Developer Should Know
The guide recommends keeping React state immutable, avoiding useState for everything, deriving and computing values during render when possible, using unique keys, and leaving useEffect for real side effects.
How To: Use LocalStorage with React
The article shows how to use localStorage in a React app to remember a first visit, switch the message on later visits, and notes that localStorage stores values as strings.
