/hello-react-custom-renderer

A custom React renderer that renders a React component to a Word document

Primary LanguageJavaScript

hello-react-custom-renderer

A custom React renderer that renders a React component to a Word document. It's based on Making a custom React renderer tutorial.

Usage

1. Clone repository & install dependencies

git clone https://github.com/WajeehZantout/hello-react-custom-renderer

Then run:

cd hello-react-custom-renderer
yarn install

2. Generate Word document

To generate the Word document run:

yarn generate:doc

This command will create document.docx file in the root directory of the project.