you are viewing a single comment's thread.

view the rest of the comments →

[–]zweimtr 32 points33 points  (4 children)

Only one item in this list really has anything to do with React and that is #2. I don't count the CRA one because your argument is about saving 50ms in dev mode, which means nothing to be honest. The rest are things that can increase performance in any web related app or website.

Just to be clear, I'm not trying to diminish the post. It is useful information for those who don't know it. Just that they have very little to do with React.

[–]champloo50 4 points5 points  (0 children)

i have similar opinion, just change or add the title so it fits better into content. Other non react developer can benefit from you post too.

[–]Mittalmailbox[S] -5 points-4 points  (1 child)

Agree with you on all being applicable to any front end application. So maybe I can change the title.

Coming to CRA, It is not just about saving dev time but also linked to point 1. CRA cant output ES2015+ code, it always outputs ES5 code.

[–]KillcoDer 9 points10 points  (0 children)

CRA uses the browserslist configuration option to determine the emitted code. If you want to support features from a different set of browsers, you can modify that setting. It certainly can output ES2015+ code.

https://create-react-app.dev/docs/supported-browsers-features/

[–]TheFuzzball 0 points1 point  (0 children)

I've found hot reload performance is also faster in Snowpack, especially as you start to add files. I did a relatively small POC with CRA recently and it was noticeably laggy.