SaltUI is a set of React UI components cooperated with DingTalk, and developed for the purpose of providing a high-efficiency, simple but useful componentized solution fot the DingTalk ISV & other React developers.
$ npm install saltui --save
import { Button } from 'saltui';
ReactDOM.render(<Button />, mountNode);
use babel-plugin-import (recommanded)
// .babelrc or babel-loader option
{
"plugins": [
["import", { libraryName: "saltui", camel2DashComponentName: false }]
]
}
or, import manually
import Button from 'saltui/lib/Button';
@import '~saltui/build/salt-ui.css';
nowa-template-salt
project template, and then CreateAuthor: salt-ui
Demo: https://salt-ui.github.io/
Source Code: https://github.com/salt-ui/saltui
#reactjs #react #javascript