Preact Components Library
Demo
组件列表
Import Component (Recommend)
-
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"
}
]
]
}
import { Carousel, Around } from 'preact-components'