Fundamentally, JSX just provides syntactic sugar for the React.createElement(component, props, ...children) function. The JSX code:
<MyButton color="blue" shadowSize={2}>
Click Me
</MyButton>
compiles into:
React.createElement(
MyButton,
{color: 'blue', shadowSize: 2},
'Click Me'
)
See documentation here React
Favorite Articles
No featured article
Article tags
react
angular
typescript
material-ui
javascript
lodash
DRY
nodejs
gatsby
contentful