Http://www.oschina.net/news/75530/9-things-every-reactjs-beginner-should-know
React.js Getting Started learning
But here's what I read directly:
Http://www.reqianduan.com/2297.html
Download the package on the GitHub page of the article first
Https://github.com/YikaJ/react-todos
After extracting, copy the Package.json to the code directory.
Then run the NPM install dependent Library.
Once installed, place the local DB directory inside the git directory inside the Node_modules directory.
You need to configure Webpack to copy the webpack.config.js to the directory.
The contents are as follows:
‘use strict‘;
var path = require(‘path‘);
module.exports = {
entry: [ "./src/entry.js" ],
output: {
path: path.join(__dirname, ‘out‘),
publicPath: ‘./out/‘,
filename: "bundle.js" },
externals: { ‘react‘: ‘React‘ },
module: {
loaders: [
{ test: /\.js$/, loader: "jsx!babel", include: /src/},
{ test: /\.css$/, loader: "style!css"},
{ test: /\.scss$/, loader: "style!css!sass"},
{ test: /\.svg$/, loader: "url?limit=8192"}
]
}
};
"Todo" react Getting started-todo making learning