semantic-react-with-options v0.5.0
This package was bootstrapped with Create React App.
This package is support Dropdown component in Semantic-UI-React (https://react.semantic-ui.com/modules/dropdown/)
Usage
This package handle load options for Dropdown component from restful API
Available HOCs
In the package, you can using HOCs:
withOptions
The HOC can help Dropdown component load options in componentDidMount and componentWillReceiveProps
withRemoteOptions
The HOC can help Dropdown component load options when user focus Dropdown and when user enter search keyword
This is lazy load with pagination
Run Demo
npm start
You can clone the repo https://github.com/tannvdts/semantic-react-with-options
And run demo with : npm start
How to use
import { withOptions, withRemoteOptions } from 'semantic-react-with-options'
You can see code demo in:
https://github.com/tannvdts/semantic-react-with-options/blob/master/src/demo/LocationDropdown.js
and
https://github.com/tannvdts/semantic-react-with-options/blob/master/src/demo/App.js