@artsy/fresnel
rendertron
@artsy/fresnel | rendertron | |
---|---|---|
8 | 15 | |
1,212 | 5,868 | |
0.9% | - | |
7.1 | 0.0 | |
about 1 month ago | over 1 year ago | |
TypeScript | TypeScript | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
@artsy/fresnel
-
Responsive Rendering With SSR
This! If you want to limit double rendering afterwards you could look into something like fresnel to automatically unmount unused breakpoints’ components after hydration.
-
I’ve built two type-safe React hooks that will help you in making your apps more accessible
the SSR default I'm guessing is the fancy one, it feels like due to SSR the most flexible way is to use media queries so it is correct on the first paint. maybe components would be better than hooks, something like https://github.com/artsy/fresnel
-
How to combine React Native Web + responsivity + NextJS SSR, to get SEO
This article is extracted from this github discussion, which goes into greater detail on how to achieve this with the libraries Dripsy (a component design system) and Fresnel (SSR w/ media queries).
-
SSR for multiple breakpoints using React
Also, take a look at a library @artsy/fresnel, which uses a similar approach to solve CLS issues in server-side rendered applications.
-
Magnus UI vs. Dripsy - Chakra UI alternatives for React Native (+Web)
If you want both SSR and RNW, then you are not so lucky. But you can read my research of the options you have, in this discussion: How to combine React Native Web (RNW) + Responsive styles (media queries) + NextJS Server-Side Rendering (SSR), to get SEO on the web. If you don't want to make a compromise like the current options, there is a library called Fresnel, which has some promise to afford this combination. But it is not quite there yet. So please consider contributing to Fresnel in the RNW+NextJS compatibility issue or the useMedia() hook issue, so that Dripsy could be upgraded to use Fresnel again to support SSR.
-
Making Next.js work with react-responsive
Something I starred a while ago: https://github.com/artsy/fresnel
-
How to use ChakraUI on native mobile?
Uses actual CSS breakpoints on web, to become responsive, even when using SSR. Uses Fresnel to achieve this. CSS breakpoints on web will rely on the mobile device's user agent for most cases. But since this can be inaccurate, it also uses pre-emptive server-side breakpoint generation. Basically, if the mobile user-agent cannot be accurately detected, Fresnel renders all media query breakpoints on the server (a bit of extra work for the server, since it might lead to rendering more components). So the client's browser will receive all breakpoints on first render and can immediately start rendering according to the correct ones. Instead of waiting for React to rehydrate before only then running the media queries with CSS-in-JS, which would have given latency and potentially unwanted visual side-effects. This becomes most acute when you are using SSR, and thus don't want to wait for rehydration on the client to start showing the responsively laid out content.
-
Full Stack Quiz Game with NextJS - My Journey
@artsy/fresnel - Lib to create media queries components in JSX.
rendertron
-
The Future (and the Past) of the Web Is Server Side Rendering
Rendertron is deprecated
Please note that this project is deprecated. Dynamic rendering is not a recommended approach and there are better approaches to rendering on the web.
Rendertron will not be actively maintained at this point.
https://github.com/GoogleChrome/rendertron
-
How do I implement server side rendering in a React.js app?
GoogleChrome/Rendertron proxy https://github.com/GoogleChrome/rendertron.
-
Use SSR only for search engines
Are you worried that rendertron isn't being maintained? (https://github.com/GoogleChrome/rendertron/issues/865 and https://github.com/GoogleChrome/rendertron/issues/801) Have you thought about using anything else or doing it yourself with Puppeteer or Playwright?
- The balance has shifted away from SPAs
-
Universal worth it solely for SEO?
Rendertron, quite old now.
- Rendertron – A Headless Chrome Rendering Solution
-
How to combine React Native Web + responsivity + NextJS SSR, to get SEO
Googlebot: SSR a non-responsive mobile version only for the Googlebot User Agent, to get SEO. But do Client-Side Rendering (CSR) for users, to get full responsivity. Could be done with manual user-agent sniffing, or with a GoogleChrome/Rendertron proxy. Though Google may not like being fed something different than users (different initial markup, even though resulting markup after React’s first CSR should be the same). But it might be problematic long-term to SSR only for the Googlebot, since it’s effectively serving the Googlebot something else than what the users get.. Google might crack down on it, since it could be abused.
-
Anyone tried Deno for something serious??
This might be another one: https://github.com/GoogleChrome/rendertron (not sure if it does everything that prerender does or not).
-
Next.js 11 released
Still prefer CRA with Dynamic Rendering with rendertron over Next.js and Gatsby...
-
Do you really need NextJS for SSR? 🤔
A demo Rendertron service is available at https://render-tron.appspot.com/. It is not designed to be used as a production endpoint. You can use it, but there are no uptime guarantees.
What are some alternatives?
css-modules - Documentation about css-modules
prerender - Node server that uses Headless Chrome to render a javascript-rendered page as HTML. To be used in conjunction with prerender middleware.
react-toastify - React notification made easy 🚀 !
puppeteer-cluster - Puppeteer Pool, run a cluster of instances in parallel
react-native-media-query - Media queries for react-native and react-native-web
puppeteer - Node.js API for Chrome
chakra-ui - ⚡️ Simple, Modular & Accessible UI Components for your React Applications
puppeteer - Headless Chrome Node.js API [Moved to: https://github.com/puppeteer/puppeteer]
ChatUI - The UI design language and React library for Conversational UI
Scully - The Static Site Generator for Angular apps
zeit-ui-react - A design system for building modern websites and applications.