Created
September 14, 2020 11:05
-
-
Save michaelkutuzov/6a7babb7ccbb77e8e89c7f5e14ddf9fe to your computer and use it in GitHub Desktop.
Fiber inside 3
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
| class ClickCounter { | |
| ... | |
| render() { | |
| return [ | |
| React.createElement( | |
| 'button', | |
| { | |
| key: '1', | |
| onClick: this.onClick | |
| }, | |
| 'Update counter' | |
| ), | |
| React.createElement( | |
| 'span', | |
| { | |
| key: '2' | |
| }, | |
| this.state.count | |
| ) | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment