Reactsfmeetup 20160923 Publishyourcomponents
Publish your own react component
Speaker: Mark Muskardin
Presentation: http://hackingbeauty.com/reactbook/
About Mark: Mark is building single page blazing fast apps in react/redux for startups.
Outline
-
"No Install" apps are desirable
- Future: People want offline 'native feeling' web apps
-
NPM is (opinion) where all dependencies should go, no longer bower
-
Companies are managing apps facing all the different facets of their business
- e.g. facing both customers and sellers
-
Reusability is key... so develop in Components!
- Publish your React Components on NPM.
npm publish
"and you're done"
-
Case Study: Material-UI - Google Material React Components
-
Case II: Mark's component -
material-ui-youtube-autocomplete
-
Write good documentation!
- How to install
- How to use
- A great example using github pages
- A solid github readme
-
Use nwb to create your component
- "Tooling in a single
devDependency
for developing, testing, building:- React Apps
- React Components and Libraries
- npm Modules for the Web
- nwb builds your demo page for you
- "Tooling in a single
-
Nota Bene: You can deliver js and css together through npm in separate files