I think the code itself is only a good comment if it is a very specific function and it can generate some doubt for another dev. But the ideal is that the code is written in the best possible way so that another dev can identify what it does by just tapping the eye.
I’ve seen some component documentation libraries, in case the company has a very customized styleguide, it may be that this type of tool helps the dev a lots. Já trabalhei com a Docz: [https://www.docz.site/] Bem prática, dinâmica e com bastante pull request
s of the community.
And I think the part, it’s important to have robust documentation regarding the product’s business rule so that dev`s can consult when needed.
You’ve read it here: A Guide to React Styling
– Augusto Vasques
If you need for Javascript: Javascript style Google Guide
– Augusto Vasques
Documentation-specific Jsdocs
– Augusto Vasques