Last active
February 15, 2018 15:01
-
-
Save jbardon/cf58603d758c443e81b177958faa451c to your computer and use it in GitHub Desktop.
#6 - React and Virtual DOM (https://medium.com/keepitlazy/intro-to-react-and-virtual-dom-f2bd1eda2feb)
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
// React.createElement naive implementation (using ES6 features) | |
function createElement(type, props, ...children) { | |
return { type, props, children }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment