@kwangkim/contextstore

0.0.2 • Public • Published

React ContextStore

based on create-react-library.

Current bug on Create-react-library(from Create-react-app)

Moved all dependencies to dev dependencies because we don't need extra dependencies for our library after build, but we want all this features while developing:

Add [] into overrides manually on eslint-config-react-app/index.js

Getting Started

Install dependencies

npm install or yarn install

Start development server

npm start or yarn start

Runs the demo app in development mode. Open http://localhost:3000 to view it in the browser.

Library files

All library files are located inside src/lib

Demo app

Is located inside src/demo directory, here you can test your library while developing

Testing

npm run test or yarn run test

Build library

npm run build or yarn run build

Produces production version of library under the build folder.

Publish library

npm publish

Usage of other libraries within your library

  • Add the library as a peer dependency in package.json (effectively requiring the calling project to provide this dependency)
  • Add the library as a dev dependency in package.json (effectively allowing this library to successfully build without complaining about not having this dependency)
  • Add the library to the externals config in your webpack.config file(s). By default, only react and react-dom are there, meaning that those are the only two libraries that you can use within your new shared library.

Readme

Keywords

none

Package Sidebar

Install

npm i @kwangkim/contextstore

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

24.7 kB

Total Files

6

Last publish

Collaborators

  • devkwang