Thank you Lasse, you saved my life. I would have never caught the small bug in the reset handler. Great catch.
Here is the codepen (https://codepen.io/vuking/pen/rNPQWvZ?editors=1111).
I have another question though: how to get React to work within the codepen, as nothing gets rendered and I get a mysterious [object Error] {} in the console.
I found your solution (to the same issue) here: (TypeError: ReactDOM.render is not a functionIn codepen), however even with the imports nothing gets rendered (Edit: I can see a brief flash of the rendering on ‘myPens’ when it loads the preview). Thank you again Lasse for saving my life. Any idea to get this working within codepen?