How can i use function to react component package

i didn’t know how to use that function to react packages