Textvalue of Editor is not reflecting in the previewer React js Markdown previewer

My code

I am trying to achieve this functionality →

Whenever i enter the text in Editor Markdown it should reflect in the previewer. I tried to do it but it is not working correctly

Can anyone help me pls

Thanks

  1. In App.js you are trying to get to the handleTextChange method on the state object, it is not on the state.

  2. In SplitView.jsx. your destructuring assignment is incorrect. The onChangeText prop is not on the props.textMarkdown property.

Mr lasjorg i did not understand this

  1. In App.js you are trying to get to the handleTextChange method on the state object, it is not on the state.

can you pls describe more ??

  1. Also i am not able to input any value in Editor Markdown after setting value={props.textMarkdown} property inside FormControl as textarea. Why ?
  1. You have this.state.handleTextChange, that is not where the handleTextChange method is. It is not on the state object, it is just on the class (this).

You can refer back to this challenge, I’d suggest you redo it and see if that helps

  1. Because of 1

Thank you much . handleTextChange method was not defined inside state rather a class function

You need to put any JS and CSS files inside src , otherwise Webpack won’t see them.