I am making a React app for a personal project, and I pretend to release it as a real application.
So I'm wondering if I have to document my React components for those other people that could read and take a look at my project.
I already know about a few documentation tools like JSDoc, but I don't know if they apply to React.js specifically.
And what about custom hooks? Mine seems a bit complicated to understand, and maybe a documentation tool might be useful in this case. I haven't seen anybody use documentation on custom hooks, though.
JSDoc is still pretty standard. Have a look, React itself uses it:
Whether the other folks in your team will actually consume these comments as JSDoc or just regular comments depends entirely on their IDEs (or if you export your JSDocs using some tool and publish them).
And, yes, this applies to custom hooks as well.