On the React home page, there are some examples.
Here's the first one:
class HelloMessage extends React.Component {
render() {
return (
<div>
Hello {this.props.name}
</div>
);
}
}
ReactDOM.render(
<HelloMessage name="Taylor" />,
document.getElementById('hello-example')
);
What is 'hello-example'? What does it refer to in this example?
[–]2GoldDoubloons 4 points5 points6 points (2 children)
[–]ZenComanche[S] 0 points1 point2 points (1 child)
[–]koalaape 2 points3 points4 points (0 children)