Updating the value of textarea from the Autocomplete component to the parent component

How can i update the value of textarea in the Autocomplete component that uses hashtag suggestions when #key is pressed to the parent component

This is for React that uses functional components

It’s not hashtags, but would this example for Twitter usernames help you achieve what you want?