winterbe / react-samples

Just a bunch of React.js examples

Home Page:http://winterbe.com/projects/react-samples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React.js Examples

This repo contains a bunch of React.js examples. No server side code, just client-side React components.

Getting started

Make sure you have NPM and Webpack installed before getting started.

  • Install: npm install
  • Build: webpack --watch
  • Start: open src/index.html

Create new samples

  • Fork this repo
  • Create a sample module, e.g. src/js/mysample/mysample-view.js. Your module must export a descriptor like that:
module.exports = {
    name: 'My Sample',
    fn: () => <MySample/>
};
  • Add your sample to src/js/app.js by adding: samples.push(require('./mysample/mysample-view'));

License

MIT

About

Just a bunch of React.js examples

http://winterbe.com/projects/react-samples/

License:MIT License


Languages

Language:JavaScript 87.6%Language:CSS 8.4%Language:HTML 3.9%