Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
You have pasted html script tags into the field where the JS code should be.
You need to insert them into the HTML field, and leave the class code in the JS field (only without the script tag), to support JSX, click on the text "javascript + ..." in the JS field, select Babel + JSX in the Language field.
It will turn out like this https://jsfiddle.net/hLtsu2cm/
UPD: in general, if you click on the cloud in the upper left corner, you will be prompted to create a fiddle based on the template, there you can select React + JSX and not worry about connecting react.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question