Static typing is a process of checking code during compile time to ensure that all variables are statically typed.
Hooks are primarily functions and have been designed in a way to ensure that all attributes are statically typed.
You can also use the React API with custom Hooks if you want to enforce stricter static typing within your code.