Closed dahmian closed 9 years ago
@dahmian Thanks. A bit busy at work this week. Will check it out over the weekend.
Took a quick glance at it... One thing to note is that React.renderComponent
is going to be deprecated in future versions of React.
Off hand, I think the syntax should be:
var Entry = React.createFactory(require('../templates/entry.jsx'));
React.render(new Entry(props), document.body);
bc9f668 - Merge branch 'master' of github.com:yeojz/metalsmith-react-templates into pr/2 27d39e5 - cleaned up PR and styles to conform with library style
Do you have any examples of running React on the server and the client? I think it would be useful to help people get started. I threw together a quick example here.