0đź‘Ť
Whatever you need to update in react components, store that variable in local state if you are using class components like this.state = { variable_name: “”}.
If you are using functional components, same thing store in local state using hooks.
e.g: const [currentWidget, setCurrentWidget] = useState(“”).
- [Vuejs]-Play specific video from loop OnClick in Vue.JS
- [Vuejs]-Use the content of local json in a webapp in vue cli 4.2.3
Source:stackexchange.com