Javascript – Assign selector value to state and not mutate original selector value when state is changed
I currently have a component that uses a selector with useSelector from react-redux. However, after I set the state with the selector value and then update the state with a onChange event handler, they original selector value will be changed…