This is a quick guide of what you need to do to publish a react component for use by others. This guide is distilled from a conversation [0] on twitter. I will reference individual tweets, where appropriate (thereby shifting blame for incorrect advice from me to the authors :D)
- You are using some sort of module system in your source
- You have a build step
- You want broad support for your component (browser-ready, npm compatible, consumable by bower)