Design comparison
Solution retrospective
Are there any production cons of forwarding refs? How can i reduce the amount of javascript bundled?
Community feedback
- @fazzaamiarsoPosted about 2 years ago
Hi Jeffrey!
I don't think forwarding ref will cause any performance problem.
To reduce the JS bundled, I recommed you to use Vite instead of Create React App. Create React App by default will add a lot unnecessary dependencies. https://vitejs.dev/guide/ and here is a good blog on why you should prefer vite https://blog.logrocket.com/vite-3-vs-create-react-app-comparison-migration-guide/
I hope it answers your questions! Cheers!
Marked as helpful1@JeffreyonPosted about 2 years ago@fazzaamiarso Thanks for the tip, i'm checking vite out rn, their features sound great
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord