It was designed to be thought provoking. A lot of people act as though they are the guardians of the answer to that very question; whether they are or not is down to what the community endorses or allows.
-
-
I clearly didn't... pay attention. (is there a video soon?) Did you talk about suspense at all? It's going to be even more of a barrier between React and not-React because it assumes everything is on the stack during render.
1 reply 0 retweets 2 likes -
Suspense wasn't mentioned, but that shouldn't be a problem if you isolate use of React to leaf-node components, right?
1 reply 1 retweet 0 likes -
Yeah, you can capture suspense exceptions and turn them into events to signal async work, you just can't do it the other way around if the events themselves are dispatched async.
1 reply 1 retweet 1 like -
Replying to @justinfagnani @slightlylate and
So, React is good for leaf nodes, but for composing a whole app you should use web components.
4 replies 2 retweets 11 likes -
Replying to @justinfagnani @slightlylate and
I haven’t checked in a while, but do web components work when JS is disabled?
1 reply 0 retweets 0 likes -
-
Replying to @slightlylate @justinfagnani and
It can SSR, just wrapped up a project to do just that and hydrate. Good for SPAs in terms of first render and social sharing / web crawlers to be able to properly consume dynamic meta data
1 reply 0 retweets 0 likes -
Replying to @damian @slightlylate and
You dodged the question. Do server rendered react apps usually work without hydration?
1 reply 0 retweets 0 likes -
Replying to @_munter_ @slightlylate and
I just outlined two use cases where not hydrating works - for web crawlers / SEO and social sharing. If we’re talking about a user viewing a website, then React app via SSR will render more than a page containing purely web components will it seems
1 reply 0 retweets 0 likes
The googlebot runs an evergreen version of Chromium. You can run JS there, and it supports modern web components tech, so that's not a problem either.
-
-
Replying to @slightlylate @_munter_ and
This might be a stupid question but is that open sourced and packaged up? Based on my testing social sharing of pages via FB, Slack use a GET to populate the share widgets which don’t play well with SPA rendered pages. An evergreen chromium bot would solve that issue
1 reply 0 retweets 0 likes -
Replying to @damian @slightlylate and
This isn't my space, but Puppeteer seems like it would do most of the heavy lifting. A quick search just turned up this article that shows how to build a basic bot with Puppeteerhttps://codeburst.io/how-to-make-a-medium-reader-bot-with-puppeteer-4d8b5a76fed0 …
0 replies 0 retweets 0 likes
End of conversation
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.