0

At hand I have an existing TypeScript project built without web components and I have a couple of React.js components in js files. Furthermore I'm using Webpack with a ts-loader only for my ts files. I wonder what I need to do to instantiate these components in my existing code. I noticed that I can't simply call ReactDOM.render because of the JSX syntax it uses. So what would be a possibility to approach this and what do I have to add to do to get it through a Webpack bundler?

I'm also looking forward to someone helping me in case this might possibly be a duplicate. ;)

0 Answers0