This is a code for a simple counter.
However, when i Render the view i don\'t get any output. Please tell me what is wrong with the code.
The button is press
From the official documentation.
Here is a list:
- Item 1
- Item 2
A React component can't return multiple React elements, but a single JSX expression can have multiple children, so if you want a component to render multiple things you can wrap it in a div like this.
Change from
var MultiButton = React.createClass(
{
render: function () {
return (
);
}
}
);
to
var MultiButton = React.createClass(
{
render: function () {
return (
);
}
}
);