I want to create an onChange method where the codemirror component is being rendered so that it adds the text inside the component into the component level state but none of the DOM events seem to work. Is it because there's already an onChange event defined?
Description
I want to create an onChange method where the codemirror component is being rendered so that it adds the text inside the component into the component level state but none of the DOM events seem to work. Is it because there's already an onChange event defined?
Component code
onChange method