Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 684 Bytes

Search.md

File metadata and controls

21 lines (15 loc) · 684 Bytes

Search ⇐ React.Component

Kind: global class
Extends: React.Component
Export: Search

new Search(onSubmit, onLocationClick, error)

Component that displays a form with a search input, search button, fetching errors and text with a link to offer using current location

PROPERTIES

Param Type Description
onSubmit function function to call when submitting the form
onLocationClick function function to call when clicking the "use current location" link
error string error text to display