React
Stimulus
DISCONTINUED
Our great sponsors
React | Stimulus | |
---|---|---|
1406 | 1 | |
204,850 | 10,061 | |
1.9% | - | |
9.8 | 6.0 | |
1 day ago | about 2 years ago | |
JavaScript | TypeScript | |
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.
React
-
My 5 favourite updates from the new React documentation
React has come a long way over the last 10 years and the framework has undergone some major changes in the way it works. The legacy docs didn’t favour new developers who had to learn React twice - once with class components and then once again with Hooks. The new docs teach modern React and have a much better structure with more interactive examples, opinions and a better colour scheme (imo 😂). There are a lot of changes so, I wanted to outline my favourite things and why:
-
What is a good resource to learn react online?
Now the new react documentation have been released they have pretty good examples. Go through it https://react.dev/
-
A detailed guide on how to implement Server-side Rendering (SSR) in a NextJs Application
Regarding page rendering with Next.js, pre-rendering is a fundamental component. It is a key feature of Next.js, which means that static HTML content is generated in advance rather than dynamically on each request. When comparing the page source of a traditional React.js web app and a Next.js web app, it is clear that the Javascript code is loaded before the contents are rendered to the user, which is a bad user experience. However, when inspecting the contents of a Next.js page source, the HTML is already generated with all the necessary data, making Next.js the most efficient method for improved web performance and user experience.
-
Setup ReactJs + TS + Styled-Componets + Redux
In this blog tutorial, we will see how we can setup a ReactJs project with Typescript, styled-components and redux toolkit.
-
Is there a plugin that abstracts registering web components with React?
React has stated that this will be supported in the future. However that issue is old enough to be in kindergarten. So I'm looking for a nice easy abstraction in the meantime.
-
React: You Might Not Need an Effect
A bare closure would always see the latest values because it closes over them during render. And the latest useEffect closure will have closed over that method..
Here is the test suite for useEffectEvent and the test ensuring it does not provide a stable reference: https://github.com/facebook/react/blob/main/packages/react-r...
And then a wild 'exhaustive-deps'[0] appears!
-
React/Python Serverless B2B Starter App with Chalice
React.js - for our frontend
-
Everything You Need to Know About the Updated React Docs
The now-legacy documentation could originally be found at reactjs.org; this now redirects to the brand-new react.dev domain. When the new docs were still in beta, they were hosted at beta.reactjs.org, which now also redirects to react.dev. The original documentation can still be found, for those who need it, at legacy.reactjs.org. This was done to make a fresh start and clear separation between the current vs. legacy documentation.
-
React.dev
I find this to be a very nice high-level explanation: https://medium.com/@ryardley/react-hooks-not-magic-just-arra...
In reality we use a linked list rather than an array. If you wanna dive into the code, I can give some pointers. For example, useState is implemented like this during first render (https://github.com/facebook/react/blob/87c803d1dad7e5fe88634...) and like this during next renders (https://github.com/facebook/react/blob/87c803d1dad7e5fe88634...).
However, _conceptually_ I'd recommend to think of Hook return values similar to "extra inputs" to your function, kind of like extra arguments. There are different ways to formalize it in different languages. We picked plain function calls for simplicity and low overhead, although you could imagine `yield` with generators or something like that.
Stimulus
-
Stimulus VS refable - a user suggested alternative
2 projects | 23 Jan 2023
What are some alternatives?
qwik - The HTML-first framework. Instant apps of any size with ~ 1kb JS
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.
Svelte - Cybernetically enhanced web apps
awesome-blazor - Resources for Blazor, a .NET web framework using C#/Razor and HTML that runs in the browser with WebAssembly.
Tailwind CSS - A utility-first CSS framework for rapid UI development.
Liquid - Liquid markup language. Safe, customer facing template language for flexible web apps.