alephium / alephium-frontend

A monorepo containing all things frontend on Alephium.
Other
13 stars 10 forks source link

Switch to React 18 API #45

Open nop33 opened 1 year ago

nop33 commented 1 year ago

react-scrollbars-custom is not compatible with React 18. We heavily depend on this library. Thus, even though we have upgraded React to v18, we are still using the React v17 API. Once this lib becomes compatible, we can switch to the React 18 API by simply using the render method of createRoot instead of ReactDom: https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html

I've opened an issue on the library (even though a similar one existed already:

I thought of using react-custom-scrollbars-2 but it's written in JS (no types available).

nop33 commented 1 year ago

To be completed when alephium/alephium-frontend#72 is done.