future-rocks-components
v1.0.12
Published
A React Component Library
Downloads
1
Readme
React
Components Library
npm install future-rocks-components
if you want to use
preact
components libraryyou can install next library
npm install preact-components
future-rocks-components
is similar topreact-components
future-rocks-components Documents
preact-components Documents
Import Component (Recommend)
import { Carousel } from 'future-rocks-components'
use plugin 'babel-plugin-import'
If you use future-rocks-components
.babelrc or other config file
{
"plugins": [
[
"import",
{
"libraryName": "future-rocks-components",
"libraryDirectory": "es",
"style": "css"
}
]
]
}
If you use preact-components
preact-components use css in js, so you do not use {'style': 'css'}
.babelrc or other config file
{
"plugins": [
[
"import",
{
"libraryName": "preact-components",
"libraryDirectory": "es"
}
]
]
}
Other Use Components Function
import {Carousel} from 'future-rocks-components'
import 'future-rocks-components/es/carousel/style/index.css'