Answer the question
In order to leave comments, you need to log in
Getting started with Reatc.js?
Please help me figure it out. To get started, I use the following template:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>thenewboston</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/JSXTransformer.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="scripts.js"></script>
</head>
<body>
<div id="content"></div>
<script type="text/jsx">
var BuckysComponent = React.createClass({
render: function() {
return (
<h2>My name is Bucky</h2>
);
}
});
React.render(<BuckysComponent />, document.getElementById('content'));
</script>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Just like normal js.
Here is an initial lesson on this topic in Russian.
www.youtube.com/watch?v=G7Ju9CFYCko
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question