Skip to content

winterbe/react-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published