JavsScript - What is StructuredClone?
Shallow vs. deep copy in objects: shallow copies reference, deep copies the object. Use reference for shallow, recursively duplicate for deep copy.
- #javascript
Shallow vs. deep copy in objects: shallow copies reference, deep copies the object. Use reference for shallow, recursively duplicate for deep copy.
Reflecting on January, inspired by Atomic Habits, I'm learning Next.js, Chakra UI, and Redux Toolkit for the Hacker News project. Next up: Cypress.
Boost React app performance with useCallback hook. Understand how it works, prevent re-renders & compare examples with/without useCallback.
Optimize React app performance with useMemo hook. Learn advantages disadvantages & see performance difference with before/after examples.
Access global state in functional components with useContext hook in React 16.8. Avoid prop drilling & consume context efficiently.
Reflect on 2022 with The Wrapped Journal. Build consistency, and overcome burnout & imposter syndrome. Track progress & achievements.
Manage state changes & fetch API data with useReducer in React. More flexible than useState, takes reducer & initial state, returns state & dispatch function.
Learn to use useEffect in React for side effects such as fetching data, event listeners, etc. Control hook call with dependency array & use with diff values.
Learn to use useState in React to handle data types, avoid mutability in arrays & update state values. Bonus: TypeScript & handling state logging behavior.
Automate CI/CD tasks and improve your workflow with GitHub Actions. Learn triggers, jobs, steps & setting up Jest testing with a practical example.