Why doesn’t this replace text in drafjs editor
I’m trying to learn draftjs. I’ve made an example where if you click a button it’s supposed to insert some text in the editor, but I can’t understand why it isn’t working, clicking the button has no visible effect.