0

I want to use a docx and pdf viewer in my react app.

Do you know a free viewer who enables to display docx and pdf document in React.js or Node.js ?

I tested react-file-viewer, but i have this error :

enter image description here Thank you

1 Answer 1

0

You should be able to use any docx or pdf viewer as they don't require you to access or edit the dom after it's published. You would just create a react component to wrap the content in for easy manipulation.

Sign up to request clarification or add additional context in comments.

4 Comments

No. I tested react file viewer, and it not build, i have an error on the webpack config
You will need to use something like browserify and babel to use JSX and es6 syntax.
I'm using already babel with webpack, and in my app i'm using also jsx, and it works. I've just this problem with the module react-file-viewer, but it not build.
It's your build environment not the plugin, try this stackoverflow.com/questions/44515802/using-react-file-viewer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.