usthing-ui
v1.3.1-patch2
Published
:metal: UI library for USThing
Downloads
9
Readme
USThing.UI
:metal: UI library for USThing
Documentation
Checkout our Documentation site
Installation
USThing-UI is available as an npm package.
# With npm
npm i usthing-ui react prop-types immutable # immutable is only needed if you use <Editor/>
# With yarn
yarn add usthing-ui react prop-types immutable
Import-by-demand
- In .babelrc
plugins: [
["import", {
"libraryName": "usthing-ui",
"libraryDirectory": "lib",
"camel2DashComponentName": true
}]
]
Usage
import React from 'react'
import ReactDOM from 'react-dom'
import {Provider, Button} from 'usthing-ui'
cosnt App = () => (
<Provider>
<Button>Hello USThing!!</Button>
</Provider>
)
ReactDOM.render(<App />, document.querySelector('#app'))