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
Consider that even the generated tiny project with *one* component is complex for beginners. Are you suggesting we generate multi page site?
1 reply 0 retweets 5 likes -
Replying to @dan_abramov @_developit and
If CRA is primarily for beginner prototyping, I buy KISS is important. If it's aimed for creating real apps, I think multi-view makes sense.
3 replies 0 retweets 12 likes -
Replying to @addyosmani @dan_abramov and
I'd be happy for CRA to *either* generate real app skeletons *or* to come with huge, flashing warning labels about mobile perf.
1 reply 0 retweets 2 likes
Prototyping tools sold as prototyping tools will get zero guff from me.
-
-
Replying to @slightlylate @addyosmani and
Is it unrealistic to wish for a CPRA (Create Prod React App) that demonstrates all current best practices in addition to CRA?
1 reply 0 retweets 2 likes -
Replying to @DotProto @slightlylate and
It exists and is called Next.js :-) IMO
1 reply 1 retweet 10 likes - 10 more replies
New conversation -
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.