jslou-react-component-module-16

0.1.0 • Public • Published

#jslou-react-component-module-16

A React component module built for a lightning talk at JSLou http://jslou.org/

##Tips for preparing a React component for npm:

  1. Define React as a peer dependency and webpack external.
  2. If your other dependencies are small, make them development dependencies and include them in your bundle. This makes it easier for someone to include your module.
  3. Expose your module as a library via webpack - target should be 'umd'.
  4. You can name your library to make it available as a global via a script include.
  5. Using the module as a global won't work unless you expose your module via module.exports instead of ES6 export default.
  6. Include an example html file in your repo that demos your module and assists with contribution testing.
  7. Don't use CSS modules; This makes it difficult for other developer to override your module's CSS styles.

Package Sidebar

Install

npm i jslou-react-component-module-16

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • benwiley4000