Desk setup:
💻 Macbook Air M2 8GB RAM, 512GB SSD: (US) amzn.to/4ckunuo | (UK) amzn.to/3PrjddH
⌨️ Apple Magic Keyboard: (US) amzn.to/3IGam3J | (UK) amzn.to/3TetzOQ
🖱️ Apple Magic Mouse: (US) amzn.to/3J1Juf3 | (UK) amzn.to/48YZvfZ
📱 Laptop stand: (US) amzn.to/49X0Ghu | (UK) amzn.to/3wZYwPy
🖥️ Dell 27 inch Full HD Monitor: (US) amzn.to/3TFj0FX | (UK) amzn.to/49ZaIi4
🔲 Dual Monitor Stand: (US) amzn.to/3vr0MyG | (UK) amzn.to/48XxRjK
🎧 Beats Studio Pro: (US) amzn.to/3Tj3yy9 | (UK) amzn.to/3ViiaAr
💡 Notion software project template: affiliate.notion.so/lv-softwa...
If you’ve dealt with global state management in React, you’ve likely come across reducers. When I first explored implementing global state without Redux, I found useReducer confusing. However, useReducer can replace multiple useState calls, making your code cleaner and more flexible. Before React’s context and useReducer hooks, we used Redux, which involves a store, actions, and reducers to manage state. useReducer, an advanced useState, accepts a reducer function and initial state, allowing parameterized dispatches. Combining useReducer with React context is a powerful approach for state management.
Stay tuned for more coding tips and tutorials. Happy coding, and I'll catch you in the next one! 🌟🚀👨💻
Background song by:
/ dahjp
8 июн 2024