Skip to content

A minimal setup to develop and publish a React Component.

Notifications You must be signed in to change notification settings

mllocs/react-component-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Component Example

A minimal setup to develop and publish a React Component.

Steps

  1. Clone this repo:
git clone git@github.com:mllocs/react-component-example.git
  1. Edit the package.json (update the component name, author, ...).

  2. Install the npm packages, link the library and run the build watch if you want to work on the component while testing it from another project:

npm install
npm link
npm run build:watch
  1. Use the component from another project. From the root of the other project run:
npm link react-component-example # Update accordingly

and use it as you would use any other component:

import Example from 'react-component-example'; // Update accordingly

About

A minimal setup to develop and publish a React Component.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published