As part of my job, I need a command line script that I can pass a react component to, and get the parsed html. As much as possible, I would like it to happen, without any background servers - just something like this
render.js /path/to/component.js '{"param1" : 11}'
I tried react-render-cli, but it keeps saying: import React from 'react'; ^^^^^^
SyntaxError: Cannot use import statement outside a module
Using "react": "17.0.2", "react-render-cli": "0.14.1"