suspend-react
React
suspend-react | React | |
---|---|---|
13 | 1,696 | |
1,314 | 222,111 | |
0.2% | 0.5% | |
4.9 | 9.9 | |
6 months ago | about 2 hours ago | |
TypeScript | JavaScript | |
MIT License | 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.
suspend-react
-
React seems to bury the lede on the new Suspense documentation
We have built the poimandres eco system on suspense. Our state managers use it (Jotai, Valtio), we have specific libraries for it like https://github.com/pmndrs/suspend-react, and practically everything in three-fiber bases on it. Suspense allows components to handle and orchestrate async tasks, it is as simple as that.
- What does React Suspens bring more than useState or useEffect?
-
I don't understand Suspense
you need to integrate the loading into suspense. react-query for instance. for simple things, async tasks etc, use https://github.com/pmndrs/suspend-react
-
Can you make a throw promise hook?
you will pretty much always end up with this: https://github.com/pmndrs/suspend-react a naive caching mechanism. but what you do there probably doesn't work because the components get unmounted, so you loose that flag state. currently the cache is kept in global space, a weakmap or a map, later react will take care of it.
-
Suspense in React 18
Problems like caching or multiple promises are handled by whichever data fetching solution you use or something generic like suspend-react which will handle them for you.
-
any reference for fetch api using redux ..?
you don't fetch api with redux. react has suspense, handling async ops is inbuilt into the framework itself. use redux alongside something like this https://github.com/pmndrs/suspend-react
-
Redux Toolkit doesn't really seem to save on boilerplate.
as for request, you should use suspense for that, routing this through your state manager is a mistake. this is all inbuilt into react now, loading, fallbacks, and composition is better done by react. your state manager could hold a url, but he fetching is done by something like this: https://github.com/pmndrs/suspend-react
-
Fella needs help doing some logic...
you can use this library: https://github.com/pmndrs/suspend-react
-
Interesting problem I am facing with a React pattern.
another thing is, this awful fetching and lifting up thing in react goes completely away with suspense. this will become the norm and code like above will vanish, but did you know that this has been a part of react since 16? for instance: https://github.com/pmndrs/suspend-react
-
State won't update inside .then
the problem with this kind of code is that it always gets messy, there's an error or a race somewhere in there and it will only get worse in scale. you can safely remove 95% of that code if you used suspense: https://github.com/pmndrs/suspend-react
React
-
Inflight Magazine no. 9
We are continuing to add new project templates for various types of projects, and we've recently created one for the infamous combination of React with Vite tooling.
-
"Kawaii" tech logos by Sawaratsuki
Go to https://react.dev/?uwu=true for a surprise.
-
Building an Email Assistant Application with Burr
You can use any frontend framework you want — react-based tooling, however, has a natural advantage as it models everything as a function of state, which can map 1:1 with the concept in Burr. In the demo app we use react, react-query, and tailwind, but we’ll be skipping over this largely (it is not central to the purpose of the post).
-
React 18.3.0 Is Out
Oddly, no info on changelog: https://github.com/facebook/react/blob/main/CHANGELOG.md
-
Preact vs React: A Comparative Guide
In this post, we get to know more about Preact, one of this year's trending libraries. And we'll compare it to React to see which one suits better for our projects.
-
Meet Cheryl Murphy: Full-Stack Developer, lifelong learner, and volunteer Project Team Lead at Web Dev Path
Cheryl Murphy is not only a dedicated full-stack web developer skilled in technologies like React, Next.js, and NestJs but also a community-driven professional who recently took on the role of volunteer project team lead at Web Dev Path. With a dual Bachelor's degree in Computing and Chemical Engineering from Monash University, Cheryl’s journey in tech is marked by a passion for building accessible solutions and a commitment to fostering community within tech.
-
How to Build an AI FAQ System with Strapi, LangChain & OpenAI
Basic knowledge of ReactJs
-
Everyone Has JavaScript, Right?
Google Translate and many other libraries break React based sites if they are using refs.
I don't think that point it falls under "written on naive assumptions"
https://github.com/facebook/react/issues/11538
the issue says closed but you can easily catch it in various sites and use cases.
-
Integrate Bootstrap with React
This article serves as your comprehensive guide to mastering the art of combining Bootstrap and React seamlessly. Dive in to uncover the tips, tricks, and best practices to elevate your UI design game effortlessly.
-
React Server Components Example with Next.js
This isn’t an accident; when Meta introduced React Server Components, Dan Abramov explicitly stated that they collaborated with the Next.js team to develop the RSC webpack plugin.
What are some alternatives?
react-suspense-fetch - [NOT MAINTAINED] A low-level library for React Suspense for Data Fetching
qwik - Instant-loading web apps, without effort
Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.
Vue.js - This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
SvelteKit - web development, streamlined
lit-element - LEGACY REPO. This repository is for maintenance of the legacy LitElement library. The LitElement base class is now part of the Lit library, which is developed in the lit monorepo.
Tailwind CSS - A utility-first CSS framework for rapid UI development.
Svelte - Cybernetically enhanced web apps
Liquid - Liquid markup language. Safe, customer facing template language for flexible web apps.
awesome-blazor - Resources for Blazor, a .NET web framework using C#/Razor and HTML that runs in the browser with WebAssembly.
Stimulus - A modest JavaScript framework for the HTML you already have [Moved to: https://github.com/hotwired/stimulus]
vite - Next generation frontend tooling. It's fast!