We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I have an array of elements in the same page, each one should have different tags.
I wish to achieve something like this:
[ [ { "id":"Italy", "text":"Whatever" }, { "id":"Germany", "text":"Whatever" } ], [ { "id":"Brazil", "text":"Whatever" }, { "id":"Argentina", "text":"Whatever" } ] ]
I tried this:
const [tags, setTags] = React.useState([[]]);
...to try map as below:
<ReactTags tags={tags[index]} ... autocomplete />
This fails as: "TypeError: tags.map is not a function"
So how can I achieve that? I need to store objects arrays of tags.
Thanks.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I have an array of elements in the same page, each one should have different tags.
I wish to achieve something like this:
I tried this:
const [tags, setTags] = React.useState([[]]);
...to try map as below:
This fails as: "TypeError: tags.map is not a function"
So how can I achieve that? I need to store objects arrays of tags.
Thanks.
The text was updated successfully, but these errors were encountered: