tbleckert / react-select-search

⚡️ Lightweight select component for React
https://react-select-search.com
MIT License
676 stars 147 forks source link

Invariant Violation: View config not found for name input. Make sure to start component names with a capital letter. #78

Closed luiza-avelino closed 4 years ago

luiza-avelino commented 4 years ago

ScreenShot: WhatsApp Image 2020-04-09 at 17 04 50

Component: <SelectSearch options={this.ocupacaoOption} value={this.state.membro_ocupacao_id}
placeholder="Escolha a ocupação" onChange={(itemValue, itemIndex) => this.setState({ membro_ocupacao_id: itemValue })} name={"search"}
/>

this.ocupationOption = [{"name": "Orientador", "value": 1}, {"name": "Ornamentador", "value": 2}, {"name": "Trator", "value": 11}, {"name": "Diarista", "value": 101}, {"name": "Almoxarife", "value": 1001}, {"name": "Pastor", "value": 1002},{"name": "Padre", "value": 1003}].