A custom React renderer that renders a React component to a Word document. It's based on Making a custom React renderer tutorial.
git clone https://github.com/WajeehZantout/hello-react-custom-renderer
Then run:
cd hello-react-custom-renderer
yarn install
To generate the Word document run:
yarn generate:doc
This command will create document.docx
file in the root directory of the project.