-
-
Save kylpo/8ed87c506a594eb9ea36c57de52fab42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createElement(label, component, props, children) { | |
console.log(`${label} element created`) | |
return React.createElement( | |
component, | |
props, | |
children | |
) | |
} | |
export default class App extends React.Component { | |
render() { | |
return ( | |
createElement( | |
'Cloning_', | |
Cloning_, | |
null, | |
createElement( | |
'Div', | |
Div, | |
{ hi: 'hi' }, | |
), | |
) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment