Should I do this exercise again without using Vanilla JS? Thanks.
A Pen by Ung Sereysopea (codepen.io)
It looks like your project is failing the tests because the editor doesn’t work, which is accurate.
You don’t need (or want really) plain JS event handling. I would suggest you use React as it was meant to be used. You can look at the React docs (for example the forms) and the fCC curriculum for more on user input handling.
Anyway, change the
id on the root element in the HTML and set it to something else like
app and then update
ReactDOM.render to use that element
id instead. Then move the
preview id to the div inside the return (the one with dangerouslySetInnerHTML) then it should pass all but the last optional test.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.