mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-08-22 12:01:14 +08:00
Basic project generator setup
TODO: - App tests - Generator tests - Component generator Signed-off-by: Simon Bailey <simon@newtriks.com>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @jsx React.DOM
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var React = require('react/addons');
|
||||
var ReactTransitionGroup = React.addons.TransitionGroup;
|
||||
|
||||
// CSS
|
||||
require('../../styles/reset.css');
|
||||
require('../../styles/main.css');
|
||||
|
||||
var imageURL = '../../images/yeoman.png';
|
||||
|
||||
var <%= scriptAppName %> = React.createClass({
|
||||
/*jshint ignore:start */
|
||||
render: function() {
|
||||
return (
|
||||
<div className='main'>
|
||||
<ReactTransitionGroup transitionName="fade">
|
||||
<img src={imageURL} />
|
||||
</ReactTransitionGroup>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
/*jshint ignore:end */
|
||||
});
|
||||
|
||||
React.renderComponent(<<%= scriptAppName %> />, document.getElementById('content')); // jshint ignore:line
|
||||
|
||||
module.exports = <%= scriptAppName %>;
|
||||
Reference in New Issue
Block a user