Created
February 20, 2017 07:22
-
-
Save amccloud/b411cd85ec0d98c9f53523e18a4f6fff 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
ChangePane('render', { | |
apiUrl: '//' + location.host + '/v1/1', | |
badge: 'Dot', | |
theme: {red: 'pink'} | |
}); | |
// becomes | |
const root = document.getElementById('#root'); | |
ChangePane.render(root, { | |
apiUrl: '//' + location.host + '/v1/1', | |
badge: 'Dot', | |
theme: {red: 'pink'} | |
}) | |
// becomes | |
<ChangePane | |
apiUrl={'//' + location.host + '/v1/1'} | |
badge="Dot" | |
theme={{red: 'pink'}} | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment