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
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
In App.js you are trying to get to the handleTextChange
method on the state object, it is not on the state.
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
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 ??
Editor Markdown
after setting value={props.textMarkdown}
property inside FormControl
as textarea
. Why ?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
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.