That's using redux toolkit (createSlice isn't available with plain old redux). But thanks for your input. It led me to coming across the useSelector and useDispatch, which does look like the future of react-redux to me
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
That's using redux toolkit (
createSlice
isn't available with plain old redux). But thanks for your input. It led me to coming across theuseSelector
anduseDispatch
, which does look like the future of react-redux to me