Update Project Latest React
lucasferreiralimax opened this issue · comments
Update Project Latest React
Update react for last version 18 and up news compatibility
Description
Re-write old structure with new structure for React v18
Motivation
Update project for new compatibility and news features from React latest
So In this issue, we are supposed to update react 17 to react 18 just? or are We also supposed to restructure the codebase according to the react 18?
Hi @meerhamzadev i believe in new restructure with updating deps webpack for 5 or usaging vite for new bundle.
What do you think about this?
Vite has some great use cases, and the instant reloads feedback is crazy. But without code splitting enabled it's a little slow compared to webpack 5 in cold starts and production builds.
I think a possible blocker for this is that the current testing strategy is using enzyme. might be worth migrating to testing-library first.
@taismassaro correct but I think this enzyme is all reusable with jest or vitest, where difference is mount of shallow component.
@meerhamzadev I like vite, but is not problem usage CRA with webpack 5 it's nice too
@lucasferreiralimax Yes both tools are good and applicable in your scenario. I think its better to stay on webpack and update your project from webpack 4 to 5.
I worked on updating the webpack at #404
Can I work on this?