MAMoazam Aliinmoazamdev.hashnode.dev·Aug 3, 2023 · 2 min readDay 08: Basic Hooks#100DaysOfCode Day 08: Basic Hooks useState hook is used to manage the state of a functional component. It returns an array with two values: the current state value and a setter function to update the state value. This update function re-renders th...00
MAMoazam Aliinmoazamdev.hashnode.dev·Aug 3, 2023 · 1 min readDay 07: Higher Order Components (HOCs)#100DaysOfCode Day 07: Higher Order Components (HOCs) Learned about the HOCs in react, which is a function that takes a component and returns a new component. Due to react hooks, HOCs are not used commonly for reusing logic. HOCs stem from the conc...00
MAMoazam Aliinmoazamdev.hashnode.dev·Aug 3, 2023 · 2 min readDay 06: Building “Rock Paper Scissor” Game#100DaysOfCode Day 06: Building “Rock Paper Scissor” Game So this weekend instead of learning, I thought of building a small project like a game or something to polish my skills and solve some problems. So, I decided to build a Rock Paper Scissor gam...00
MAMoazam Aliinmoazamdev.hashnode.dev·Aug 2, 2023 · 2 min readDay 05: Manipulating the DOM with Refs#100DaysOfCode Day 05: Manipulating the DOM with Refs Cont. Learned how we can manipulate the DOM with Refs in react. Using Refs we can create a reference to a particular node in DOM and then with the help of that Ref we can use browser APIs on t...00
MAMoazam Aliinmoazamdev.hashnode.dev·Aug 2, 2023 · 2 min readDay 04: Referencing Values with Refs#100DaysOfCode Day 04: Referencing Values with Refs Learned about refs, which is used when we want a component to remember something but you don’t want that information to trigger new renders, that’s where you use the useRef hook from React. If you...00