In JSX when you have
<div>hello</div>
or
<div children="hello"></div>
it transpiles down to either passing "hello" as the 3rd argument to React.createElement or it's part of the props object.
React.createElement
Is there any difference or benefit in allowing both ways when they seem to do exactly the same thing?
2.1m questions
2.1m answers
60 comments
57.0k users