Preserving state in a conditionally rendered react element – Javascript
My react app has a toggle button called Technical. If it is toggled on, we display , a custom component that offers a collection of highly technical options for the user. It has a lot of state. I am having…