iTwin / appui

Monorepo for iTwin.js AppUi
MIT License
8 stars 2 forks source link

Maintenance: use JSX transform feature #760

Open GerardasB opened 8 months ago

GerardasB commented 8 months ago

Is your feature request related to a problem? Please describe.

Enable JSX transform feature. Remove explicit React module imports, only import specific hooks where needed. https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html

Related change in presentation package: https://github.com/iTwin/presentation/blob/1794a831296bd88e73a4c8b6a6bd1cb69e275605/packages/components/tsconfig.json#L4

mayank99 commented 4 months ago

We tried using the new transform in iTwinUI but had to revert it because it is not correctly supported in React 17 + Webpack 5. More details in https://github.com/iTwin/iTwinUI/pull/2122

mayank99 commented 1 month ago

Since React 17 support was dropped in #1054, the issue I mentioned in my previous comment is no longer applicable. 🎉