Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 330 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 330 Bytes

Install

npm install react-auto-complete

Usage

...
React.create-element do
    AutoComplete
    value: @state.selected-fruit
    options: <[apple banana grapes strawberry pineapple orange mango]> 
        |> map (fruit) -> {label: fruit, value: fruit}
    on-change: (value) ~> @set-state selected-fruit: value
...