I’m trying to use this library https://www.npmjs.com/package/react-places-autocomplete to implement autocomplete on the ravenous project input form(the last thing I need to finish it). I honestly don’t know what I’m doing at this point. Could someone take a look and give me a hand ?
That’s the code , basically it’s all happening on searchbar.js and autocomplete.js.
I’m sure i’m making some noob mistake but I honestly don’t know anymore. I think I’m one error away from it working but I’m not sure. This is the error I’m getting:
Warning: Failed prop type: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`. in input (at autocomplete.js:25) in div (at autocomplete.js:24) in PlacesAutocomplete (at autocomplete.js:18) in div (at autocomplete.js:17) in Autocomplete (at SearchBar.js:85) in div (at SearchBar.js:81) in div (at SearchBar.js:75) in SearchBar (at App.js:29) in div (at App.js:27) in App (at src/index.js:9) in StrictMode (at src/index.js:8)
Thanks in advance if anyone can help me!