sergiop / react-giphy-searchbox

Responsive and customizable search and select for Giphy's GIFs and Stickers.
https://sergiop.github.io/react-giphy-searchbox/
MIT License
48 stars 19 forks source link

Usage in existing form component #58

Open OmkarK45 opened 3 years ago

OmkarK45 commented 3 years ago

Hi! Thank you for creating this package. It works really well. However, I'm facing an error while using this inside an existing <form> tag.

Is there any way to get around this ?

image

sergiop commented 3 years ago

@OmkarK45 This component contains his own form tag, so you can't nest it in another one. To use it you need to put the two forms at the same level and manage the state from the parent component.