@artsy/fresnel
react-native-media-query
Our great sponsors
@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 | - |
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.
-
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.
-
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.
react-native-media-query
-
How to combine React Native Web + responsivity + NextJS SSR, to get SEO
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?
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?
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! 🖥️