Skip to content

Instantly share code, notes, and snippets.

@amccloud
Created February 20, 2017 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amccloud/b411cd85ec0d98c9f53523e18a4f6fff to your computer and use it in GitHub Desktop.
Save amccloud/b411cd85ec0d98c9f53523e18a4f6fff to your computer and use it in GitHub Desktop.
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