Answer the question
In order to leave comments, you need to log in
Why is React not working?
I recently decided to learn react.js. I decided to watch the video course first, and get serious after the basics. (Maybe a book is better right away? Which one?). Did as in the lesson. But. On the offsite, I took links for approximately the following files: react.js (it seems so), react-dom.js, babel.min.js (something like this). Instead of pasting links in src="", I followed the links and completely copied the opened files in order to speed up page loading. And then every time to reboot during the experiments. I made a test Hello World according to the video course:
<div id="root">
<script type="text/babel">
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('root')
);
</script>
</div>
<div id="root">
<script type="text/babel">
class Block extends React.Component ({
render () {
return (<h3>WhiteBachelor0</h3>)
}
});
ReactDOM.render(<Block/>,
document.getElementById("root"));
</script>
</div>
Answer the question
In order to leave comments, you need to log in
Do everything as they say in the lessons and everything will work)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question