@tonydinh/react-toolkit
v1.0.0-rc.17
Published
A collection of reusable react components.
Downloads
7
Readme
React Toolkit
React Toolkit is a collection of re-useable React components. See the documentation here.
The guide below explains how one might integrate this module using webpack as a module bundler.
Installation
$ npm install --save @tonydinh/react-toolkit
Prerequisites
It might be useful to configure webpack with an alias for resolving the components in this module.
// webpack.config.js
const config = {
...
resolve: {
alias: {
"react-toolkit": 'node_modules/@tonydinh/react-toolkit/dist/components'
}
}
}
Importing
With the configuration above, we can import components from the module with:
import Button from 'react-toolkit/button'
Developing
Requirements
The module supports the latest Node LTS.
Getting Started
Once you have cloned the repository, run the following at the $PROJECT_ROOT
to start the development server.
$ npm i && npm start