O
O
olya_0972019-02-13 23:07:14
React
olya_097, 2019-02-13 23:07:14

Why is it not rendering, how to fix it?

https://jsfiddle.net/c9n6ka85/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Proskurin, 2019-02-13
@olya_097

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 question

Ask a Question

731 491 924 answers to any question