@artsy/fresnel VS react-native-media-query

Compare @artsy/fresnel vs react-native-media-query and see what are their differences.

@artsy/fresnel

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

react-native-media-query

Media queries for react-native and react-native-web (by kasinskas)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
@artsy/fresnel react-native-media-query
8 3
1,201 72
1.7% -
7.2 0.0
1 day ago 10 months ago
TypeScript JavaScript
GNU General Public License v3.0 or later -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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

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.
  • 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.
  • 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.

react-native-media-query

Posts with mentions or reviews of react-native-media-query. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-08.
  • How to combine React Native Web + responsivity + NextJS SSR, to get SEO
    5 projects | dev.to | 8 Sep 2021
    Forking RNW is an option. But if you are worried about maintaining a fork of RNW with potential style inconsistencies, then react-native-media-query is already that fork. It attempts to do media queries inside RNW's StyleSheet.
  • How to use ChakraUI on native mobile?
    9 projects | dev.to | 1 Apr 2021
    Not yet responsive, but planned responsive under SSR with react-native-media-queries, which makes pure CSS media queries run on native (with device orientation), since Magnus UI generates pure CSS media queries when run on web. They consider it more performant than using Fresnel. But the jury is out..

What are some alternatives?

When comparing @artsy/fresnel and react-native-media-query you can also consider the following projects:

react-toastify - React notification made easy 🚀 !

css-modules - Documentation about css-modules

dripsy - 🍷 Responsive, unstyled UI primitives for React Native + Web.

capacitor - Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️

chakra-ui - ⚡️ Simple, Modular & Accessible UI Components for your React Applications

ChatUI - The UI design language and React library for Conversational UI

react-native-magnus - A Utility-First React Native UI Framework 🚀🧩

zeit-ui-react - A design system for building modern websites and applications.

searchkit - Search UI for Elasticsearch & Opensearch. Compatible with Algolia's Instantsearch and Autocomplete components. React & Vue support

semantic-ui-react - The official Semantic-UI-React integration

electron - Deploy your Capacitor apps to Linux, Mac, and Windows desktops, with the Electron platform! 🖥️