70
rated 0 times
[
75]
[
5]
/ answers: 1 / hits: 78926
/ 9 Years ago, thu, may 21, 2015, 12:00:00
I am playing around with the ReactJS framework on JSBin.
I have noticed that if my component name starts with a lowercase letter it does not work.
For instance the following does not render:
var fml = React.createClass({
render: function () {
return <a href='google.com'>Go</a>
}
});
React.render(<fml />, document.body);
But as soon as I replace the fml
with Fml
it does render.
Is there a reason I cannot begin tags with small letters?
More From » reactjs