data-client
react-content-loader
data-client | react-content-loader | |
---|---|---|
12 | 12 | |
1,891 | 13,370 | |
0.3% | - | |
9.8 | 2.8 | |
3 days ago | 2 months ago | |
TypeScript | TypeScript | |
Apache License 2.0 | MIT License |
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.
data-client
-
SWR VS rest-hooks - a user suggested alternative
2 projects | 5 Feb 2023
Provides data fetching, but handles mutations better by using reactive paradigms.
-
Nextjs 13 server components discussion
You can still do SSR with normal client-side behavior if you use a React 18 SSR compatible library
-
Why are data fetching libraries in the view layer so mainstream in React apps?
https://resthooks.io/ is inspired by Backbone models
-
alternatives to useReducer for heavy async flows
The control flow can be pretty straightforward once you have middleware integration; which you can see with async state management becoming as simple as a one-liner
-
(React-Query ) Re-declaring useQuery() and all its options in multiple components?
You're probably better off using a tool that is built with code reuse in mind like https://resthooks.io
-
Should I learn Nextjs?
Probably the most important thing is to have a normalized data cache to save yourself tons of data-bug headaches. I use https://resthooks.io/ myself because it used inferred typing safety meaning I don't have to do any extra definitions or even use typescript and it will tell me what types I should expect. But you could also roll your own normalization using https://github.com/paularmstrong/normalizr with a state management tool like redux
-
SWR vs React Query? Which one do you like to use with Next.js?
If the data ever changes I prefer using Rest Hooks to ensure data integrity without having to manually write state updates for every usage
- I made a asynchronous data framework - tell me what you think!
-
Is typescript worth it?
The advantage really comes when you using libraries like https://resthooks.io/ that enforce and infer strong types without effort from you. Then all you're doing is writing the types. Even cases like typos get removed due to typeahead helping you out. This is especially helpful in large projects with many developers as you'll likely be frequently working with types someone else defined and you don't know their members off the top of your head.
-
Awesome Things Related To React Hooks 😍
rest-hooks - Delightful data fetching for React.
react-content-loader
- How can I get a screen to load like this until data is got
-
Just launched my first app - ShopCats (shopcats.app). Getting react-navigation right was a very interesting challenge, details below.
What's great about is that you can design your loading screens on their site: https://skeletonreact.com/
- prefered way to fetch extra data when navigating
-
Awesome Things Related To React Hooks 😍
React Content Loader - SVG-Powered component to easily create placeholder loadings (like Facebook’s cards loading).
-
18 amazing 🤩 GitHub repositories that will help you 🪄 make a beautiful project
This is a Vue port for react-content-loader.
-
Load API content as elements become visible to users in React
TL;DR; You can reduce the number of queries you make on listing pages by loading content as it gets displayed. Use react-intersection-observer to detect when an element becomes visible and react-content-loader to display a contentful placeholder loader.
-
Skeleton Loading
I use https://github.com/danilowoz/react-content-loader can create skeletons with svgs. might sound confusing at first but it works well, is performant and does the job. https://skeletonreact.com/ Firstly check this website out see if they already have what you need in their presets
-
Load API content progressively as elements become visible to users
I eventually ended up combining react-intersection-observer and react-content-loader to create a progressive loading experience where elements get loaded as they become visible to users.
-
Lazy loading react components with React.lazy and Suspense
The current UX trend is to use some kind of a placeholder animation while loading pieces of UI. react-content-loader is a popular npm package for this use case. It is customizable, supports react and react-native, has some bundled presets, and actually supports SVG animation out of the box.
What are some alternatives?
orval - orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺
personlig-bilskilt - 🚗 Skiltgenerator for personlig bilskilt i SVG-format. Kan brukes som badge på GitHub.
react-autosuggest - WAI-ARIA compliant React autosuggest component
react-native-skeleton-placeholder - SkeletonPlaceholder is a React Native library to easily create an amazing loading effect.
react-native-netinfo - React Native Network Info API for Android & iOS
nextjs-loader - Uploadcare custom image loader for Next.js
easy-peasy - Vegetarian friendly state for React
rc-progress - React Progress Bar
evergreen - 🌲 Evergreen React UI Framework by Segment
react-spinners - A collection of loading spinner components for react
React-Use-Smooth-Scroll - React Provider Component to add a smooth scroll effect 😍
react-block-ui - Easy way to block the user from interacting with your UI.