Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

first-react-component

hienhuynhtm3BSD1.0.0

first react component

react, reactjs, react-component

readme

first react component

Get the AMD module located at first-react-component.js and include it in your project.

Here is a sample integration:

require.config({
  paths: {
    'react': 'vendor/bower_components/react/react',
    'FirstReactComponent': 'first-react-component'
  }
});

require(['react', 'FirstReactComponent'], function(React, FirstReactComponent) {

  React.render(React.createElement(FirstReactComponent), document.getElementById('widget-container'));

});

Development

  • Development server npm start.
  • Continuously run tests on file changes npm run watch-test;
  • Run tests: npm test;
  • Build npm run build;