My posts : https://www.56kode.com/
Check the children.
JSX passed inline is recreated every render → breaks memo.
✅ Solution: memoize children with useMemo,
or don’t memoize at all if it’s not worth it.
Code ⬇️
Check the children.
JSX passed inline is recreated every render → breaks memo.
✅ Solution: memoize children with useMemo,
or don’t memoize at all if it’s not worth it.
Code ⬇️
Perfectly covered code ✅
Results never verified ❌
Look at this image: a test that executes all code without testing anything.
Coverage measures execution, not quality.
What are you actually measuring in your team? #testing #js #vitest #jest
Name them properly, make them reusable, and your code will thank you later.
Cleaner code is just a function away. ✨ #cleancode #js #javascript
Name them properly, make them reusable, and your code will thank you later.
Cleaner code is just a function away. ✨ #cleancode #js #javascript
Don't pollute the global scope! Create pure functions instead:
- prevents conflicts
- better performance
- easier debugging
Full article: dev.to/56_kode/avoi... #cleancode
Don't pollute the global scope! Create pure functions instead:
- prevents conflicts
- better performance
- easier debugging
Full article: dev.to/56_kode/avoi... #cleancode
Never modify your data directly - always create new copies. Mutations can lead to unpredictable bugs and make your code harder to debug.
Learn more about handling immutable data properly: dev.to/56_kode/clea... #js #cleancode #javascript
Never modify your data directly - always create new copies. Mutations can lead to unpredictable bugs and make your code harder to debug.
Learn more about handling immutable data properly: dev.to/56_kode/clea... #js #cleancode #javascript
Functions should be predictable - they take inputs and return outputs. Modifying global state? That's a side effect. Keep your functions pure and centralize necessary side effects in dedicated services. #cleancode #js #javascript
Functions should be predictable - they take inputs and return outputs. Modifying global state? That's a side effect. Keep your functions pure and centralize necessary side effects in dedicated services. #cleancode #js #javascript