That's the thing: React does code split by default. W the full lang at your fingers, not a watered down template dsl, can import() as needed
-
-
Adam Rackis Retweeted Adam Rackis
Saying React doesn't code split by default is like saying React won't process Maps by defaulthttps://twitter.com/AdamRackis/status/855112673587064832 …
Adam Rackis added,
1 reply 0 retweets 0 likes -
Replying to @AdamRackis @slightlylate
I think Alex meant that the official tooling for most libraries does not yet make splitting automated. It's difficult but worthwhile.
1 reply 0 retweets 4 likes -
Replying to @_developit @slightlylate
True, but man it's still pretty turn key https://github.com/thejameskyle/react-loadable …
1 reply 0 retweets 5 likes -
The last time I did a React developer survey, <10% of ~500 respondents identified they were code-splitting. Strong defaults could help here.
4 replies 3 retweets 23 likes -
seems like a really easy win :D
2 replies 0 retweets 6 likes -
Replying to @_developit @addyosmani and
What kind of defaults are you suggesting? CRA doesn’t dictate how you do routing and doesn’t generate a “real”-ish project. Should we?
4 replies 0 retweets 12 likes -
Replying to @dan_abramov @_developit and
I'd be pretty happy if CRA prescribed a routing solution (most prod apps I see use React Router) + splitting by default. Would go a long way
5 replies 0 retweets 17 likes -
Replying to @addyosmani @dan_abramov and
And what if you want to use, say, Redux-First Router, or Junctions, or Redux-Tower, or anything else that's not React-Router?
2 replies 0 retweets 1 like -
Replying to @acemarke @addyosmani and
I feel like there's very clashing visions for what CRA "should" be, and what behaviors it's intended to optimize for
2 replies 0 retweets 1 like
Again, I have no dogs in that fight. Happy for React & CRA to carry on as-is, but only if they include prominent disclaimers.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.