Invoke the Rename refactoring, ⇧F6 (macOS) / Shift+F6 (Windows/Linux), and the IDE will detect automatically when it's invoked on a useState hook in a React application and offer to rename all names associated with them.
The following content is directly taken from the JetBrains Guide.
