How to have a set of elements easily accessible by different functions without having to declare them in each scope and without using globals?

I have a form containing about 20 inputs, which I use to store values which are later to be manipulated by some Javascript functions:

Is it a bad practice to create a hook that doesn’t access to React lifecycle? [closed]

I’ve created a hook called useFilestack that now abstracts the logic to upload a file from a binary, but in the future it can grow as needed. So it looks like this: const useFilestack = () => { …