I need to use Draft.js createEmpty method to reset the EditorState, however the problem…
Jump to turn (10)
- 1I need to use Draft.js createEmpty method to reset the EditorState, however the
- 2is there a way for me to use resetState event, that is event from 'effector' lib
- 3I need to do this without creating editorStateStore and I can't add handleChange
- 4In effector library I have a an event called Event1. I also have react component
- 5Any way of doing it without using effector's .watch method?
- 6can you do it without using .watch method inside of effector store at all?
- 7Don't use .wathc method anywhere at all! Also don't use useEffect for it!
- 8what does effector's .map method do exactly
- 9I have Component1 in React. Inside of it there is a Button that does handleClick
- 10But you pass resetEditStore as a props and you didn't defined resetCallback in C
- User
I need to use Draft.js createEmpty method to reset the EditorState, however the problem is that the button I need to assign the reset function to is placed a few components above from the the component in which EditorState that determines the state of the component is defined. What can I do?
- Assistant