"Todo" react Getting started-todo making learning

Source: Internet
Author: User



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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.