Sorry for the amateur question, but what is the simplest way to convert JSX to DOM elements? In TypeScript I am used to use a package named “JSX-dom”, which is configured in the package.json and doesn’t require in-file configuration. I have tried to use the new JSX preserve mode to convert JSX later in babel, but it requires to import a ReactDOM for some reason. I think, that I don’t need a ReactDOM at all. Is there any simple ready-to-use solution? Thanks.
↧