I\'m currently working on a tag feature in React and I am not sure how to update the tags.
In TagsInput.js
import React, { useSta