VDVrushabh Dhatrakincodingstandard.hashnode.dev·Jun 9, 2022 · 1 min readCustom Hooks In ReactCustom Hooks makes it really easy to share stateful logic amongst the components. This makes the react components even more composable. Syntax Summary Take the hook out of the main code & put in a function. Return the state variable you need in you...00
VDVrushabh Dhatrakincodingstandard.hashnode.dev·Jun 9, 2022 · 2 min readStates in ReactIn the previous article, we understood how we should think in react, in this article, we will learn how a state works in react, let's start: Thumb Rule Initial State, Initial View -> Event -> New State, New View Syntax for State In React const [ sta...00
VDVrushabh Dhatrakincodingstandard.hashnode.dev·Jun 8, 2022 · 2 min readThinking In ReactVisualise DOM It means how a web page looks & after a state change how a web page will look Main Formula State -> Event -> State Understanding f(state) -> view It means our view is a function of the State. f(state change') -> view also get change' Ba...01K