syedsimanta03 / react-quiz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

import { useReducer } from 'react'

When to use: useReducer = immutable, always return a new type of data as per switch case

1-When components have a lot of state variables and state updates, spread across many event handles all over the component

2-When multiple state updates need to happen et the same time

3-When updating one piece of state depends on one or other multipe pieces of state

About


Languages

Language:JavaScript 62.9%Language:CSS 26.9%Language:HTML 10.3%