Created
July 14, 2019 19:15
-
-
Save ralfting/c1bb52ffa1a687cdfa2e95ef0a548e76 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const Pet = () => { | |
| return React.createElement( | |
| 'div', {}, | |
| [ | |
| React.createElement('h4', {}, 'Luna'), | |
| React.createElement('h5', {}, 'Dog'), | |
| React.createElement('h5', {}, 'Pug'), | |
| ], | |
| ) | |
| } | |
| const App = () => { | |
| return React.createElement( | |
| 'div', {}, | |
| React.createElement( | |
| 'h3', {}, '-- Adopt me! --', | |
| React.createElement(Pet), | |
| React.createElement('h4', {}, '----'), | |
| React.createElement(Pet), | |
| React.createElement('h4', {}, '----'), | |
| React.createElement(Pet), | |
| React.createElement('h4', {}, '----') | |
| ), | |
| ); | |
| }; | |
| ReactDOM.render(React.createElement(App), document.getElementById('root')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment