Answer the question
In order to leave comments, you need to log in
Custom implementation of react.createElement?
There is a code
var reactElementUl = React.createElement(
'ul', {
className: 'myList'
},
[
'Some text',
React.createElement('li', {}, 'one'),
React.createElement('li', {className: 'li2'},'two'),
React.createElement('li', {className: 'li3'},'three')
]
);
React.render(reactElementUl, document.getElementById('root'));
Answer the question
In order to leave comments, you need to log in
Related links :
Build your own Front-end Framework / Library
Didact: a DIY guide to build your own React
https://github.com/pomber/didact
Build Your Own React — A Step By Step Guide
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question