Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has anyone used this with React/JSX? #174

Open
michaelmarziani opened this issue Jul 28, 2023 · 0 comments
Open

Has anyone used this with React/JSX? #174

michaelmarziani opened this issue Jul 28, 2023 · 0 comments

Comments

@michaelmarziani
Copy link

michaelmarziani commented Jul 28, 2023

Hi there, I'm moving some code from the front to back end, in particular PDF generation.

I'm able to execute plain JS code with this library and it works great, I can use pdfmake to generate PDFs and return the file as a stream, but I've been using @react-pdf/renderer and have built up a set of templates in JSX/TSX I'd like to keep using.

To do this I know I'll need to run the code through babel or another transpiler, but I haven't set this up from scratch.

Does anyone have an example of setting up React and babel to where it will work with JavaScript.NodeJS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant