Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Яким чином можна оголосити стан (state) у функціональному компоненті?
const [state, setState] = useState(initialState)
const [state, setState] = useContext(initialState)
const [state, setState] = useReducer(reducer, initialState)
const [state, dispatch] = useReducer(reducer, initialState)
const state = useState(initialState)
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!