@castine/budget v4.1.22
react-widgets
React components
Install
On package.json from our projects:
"dependencies": {
"react-widgets": "git+ssh://git@bitbucket.org:castinellc/react-widgets.git#v1.0.0"
}
Build
We're using rollup to build components. From the root path we must use: 'rollup -c' + any other extra parameters (see: https://rollupjs.org/guide/en) Created project template using boilerplate (For more information visit: https://www.npmjs.com/package/create-react-library)
Test
cd example folder npm start (runs create-react-app dev server) Now, anytime you make a change to your library in src/ or to the example app's, create-react-app will live-reload your local dev server so you can iterate on your component in real-time.
Usage
import React, { Component } from 'react'
import {TextBox} from 'react-widgets'
class Example extends Component {
render () {
return (
<TextBox title={"Text box title"} />
)
}
}
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago