0.5.0 • Published 4 years ago

semantic-react-with-options v0.5.0

Weekly downloads
21
License
-
Repository
-
Last release
4 years ago

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

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago