I\'m using TypeScript and React. I\'ve defined my AppContainer.tsx component, exported it as default. I\'m consuming this in the file app.
AppContainer.tsx
app.
You can't use jsx/tsx syntax inside files which have ts extension.
jsx
tsx
ts
You can either rename your file to app.tsx, or you can use React.createElement:
app.tsx
ReactDOM.render( React.createElement(AppContainer), document.getElementById('AppContainer') );