I am new to this jsfiddle, I made a very simple helloworld in React but it is not executed, what is the cause of this error? I took the example of this jsfiddle . How can I solve it? The code is identical but it does not print the result. Could you help me.
Check that you have chosen the same External Resources:
The same thing happened to me with AngularJS
your project
How should you have the project
As they say in the previous answers, you are missing the external extensions and changing the JS window to BABEL + JSX, you are also doing
render()
the content wrong inside the bracesrender(){/* contenido */}
and you must perform thereturn
, and inReactDOM.render()
it you have the wrong syntax in such a way that itReact.DOM
you do like thisYou are missing the external resources in the JsFiddle, in other words the external resources. Without that the example will not work for you.
You can add them in the tabs on the left External Resources, or directly from the code you reference them.
https://unpkg.com/[email protected]/umd/react.development.js
https://unpkg.com/[email protected]/umd/react-dom.development.js
JsWorking
https://jsfiddle.net/qjg4p1dy/33/
Now the code you wrote has several errors for example:
Get used to using the console, so you can review your code. I use Google Chrome.