I have a requirement to create the doc file of each of the component we define in our reactjs application. I am looking for the npm that we can use for creating the document of any extension, so that it may extract the code, comment everything from my component and change that to the document of any extension. How can I do that, please, assist me? My question is different from the other question found regarding the jsdoc, because I am looking for the documentation in reactjs using jsdoc.
Finally I found the solution, First go to the this link and read the document properly:- Read Document Now do the following steps:-
We document our React components library by using React Styleguidist.
It will parse your code with the following features:
It works by building a web app through Webpack, that you can use locally or host somewhere for all your developers.
For us, it works pretty well and they improve it over time.
Edit: Is uses react-docgen under the hood.
Try this package it has examples for you to understand.
It provides a default implementation for React components defined via React.createClass, ES2015 class definitions or functions (stateless components). These component definitions must follow certain guidelines in order to be analyzable (see below for more info).