@artsy/fresnel

An SSR compatible approach to CSS media query based responsive layouts for React. (by artsy)

@artsy/fresnel Alternatives

Similar projects and alternatives to @artsy/fresnel

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better @artsy/fresnel alternative or higher similarity.

@artsy/fresnel discussion

Log in or Post with

@artsy/fresnel reviews and mentions

Posts with mentions or reviews of @artsy/fresnel. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-17.
  • Responsive Rendering With SSR
    2 projects | /r/reactjs | 17 Oct 2022
    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
    1 project | /r/typescript | 20 Jan 2022
    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
    5 projects | dev.to | 8 Sep 2021
    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
    6 projects | dev.to | 31 Aug 2021
    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)
    7 projects | dev.to | 10 Jun 2021
    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
    1 project | /r/reactjs | 1 May 2021
    Something I starred a while ago: https://github.com/artsy/fresnel
  • How to use ChakraUI on native mobile?
    9 projects | dev.to | 1 Apr 2021
    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
    4 projects | dev.to | 13 Nov 2020
    @artsy/fresnel - Lib to create media queries components in JSX.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 8 Oct 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic @artsy/fresnel repo stats
8
1,244
5.5
28 days ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you konow that TypeScript is
the 2nd most popular programming language
based on number of metions?