Skip to content

Instantly share code, notes, and snippets.

@cdbkr
Last active February 19, 2016 17:01
Show Gist options
  • Save cdbkr/3124714246d4d2a1024c to your computer and use it in GitHub Desktop.
Save cdbkr/3124714246d4d2a1024c to your computer and use it in GitHub Desktop.
const React = require('react');
const ReactAtellier = require('react-atellier')(React);
class AtellierWrapper extends React.Component{
render() {
const Icon = React.createClass({
render: function() {
return (
<div>
hello
</div>
);
}
});
const componentList = [{
componentName : 'Icon',
component : Icon
}];
return (
<div>
<ReactAtellier components={componentList}></ReactAtellier>
</div>
);
}
};
export default AtellierWrapper;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment