redux-templates
inertia
redux-templates | inertia | |
---|---|---|
10 | 121 | |
1,354 | 5,751 | |
2.1% | 1.1% | |
9.2 | 7.9 | |
1 day ago | 6 days ago | |
TypeScript | PHP | |
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.
redux-templates
-
The new wave of React state management
Yeah, _please_ don't use `typesafe-actions` :)
It may have had some value before RTK came out, but a lot of the opinions and approaches shown in its docs lead you to write _wayyyy_ too much code. For example, we specifically recommend _against_ writing TS unions for action object types [0].
RTK completely obsoletes `typesafe-actions`, and the TS usage patterns that we teach today should result in a pretty minimal set of types that you need to write in your own code.
For a small example see the RTK+TS template for Create-React-App [1]. If you want to see what a real app codebase can look like, the client app for my day job at Replay.io is OSS [2]. It's admittedly a somewhat messy codebase due to its long evolution and legacy (started as the FF DevTools codebase, copy-pasted, and we've been slowly migrating to RTK+TS and modernizing it), but files like [3] show how I would write a real slice reducer with RTK+TS.
[0] https://redux.js.org/usage/usage-with-typescript#avoid-actio...
[1] https://github.com/reduxjs/cra-template-redux-typescript
[2] https://github.com/replayio/devtools
[3] https://github.com/replayio/devtools/blob/454804188d33900a26...
-
How I Setup Redux Toolkit and RTK Query
The recommended way to initialize a new app with React and Redux is by using the official Redux+JS template or Redux+TS template.
-
Should i learn Typescript prior to React?
I learned the basics of react initially, and then when I started using typescript + react, I did so using the create-react-app typescript redux template. I found that having a template to build from was extremely helpful. I'm sure there are other good templates out there if you didn't want to worry about redux (I think it's good, but it's got it's own mental overhead), but being able to refer to the template implementation was extremely helpful, since the typings of some react things can be highly weird.
- Best place and way to learn about Redux
- Correctly typin Store interface with redux toolkit
- Folder structure for React-Redux with Typescript project
-
React-Redux-Typescript Boilerplate
Please see the official Redux+TS template for CRA, which shows the correct "modern Redux" patterns in action, as well as the "Modern Redux with RTK" tutorial page and our recommended TS usage patterns.
-
Hello, I am recording again. This time about the latest version Redux and TypeScript.
btw, note that we have an official Redux+TS template for CRA that comes with RTK and React-Redux already configured.
- Mastering Typescript State Management using Redux
-
DO Hackathon: Web Application
Now the first two questions have been answered. Moving on to the next one, state management. I decided to use redux. Came across this amazing toolkit and this beautiful and friendly template template from the official reduxjs repository.
inertia
-
Should I rebuild my web app as an SPA?
You mention that implementing Vue with Laravel is a headache but without mentioning what kind of issues you have had? Have you looked into using Inertia.js? (https://inertiajs.com/)
- where can I find information about using vue and php together?
-
Up-to-date methods of using Vue with Laravel in a non-SPA way?
Inertia is what you're looking for, works great!
-
Ask HN: What are some unpopular technologies you wish people knew more about?
Don't know if https://inertiajs.com can be classified as unpopular. but I think it's one of the best web solution combining the best of the both worlds ssr and spa.
-
SQLSync – Stop Building Databases
But, if I can be honest, solutions such as Hotwire or Livewire are not as snappy as a SPA.
I personally prefer [InertiaJs](https://inertiajs.com), which is some kind of front-end router system with its state synced with the server in an "old style" fashion.
- Build single-page apps, without building an API
- InertiaJs: Build single-page apps, without building an API
-
An Internet of PHP
[2] https://inertiajs.com/
- Inertia.js – The Modern Monolith
- InertiaJS – Single-page apps, without building an API
What are some alternatives?
redux-eggs - Add some Eggs to your Redux store.
laravel-pwa - Looks like an app, feels like an app, but IS NOT an app.
vuex - 🗃️ Centralized State Management for Vue.js.
vite - Next generation frontend tooling. It's fast!
redux-easy-mode - A very easy to understand and use set of tools for Redux. Includes action builders, reducer builders, side-effect middleware, and async actions.
astro - The web framework for content-driven websites. ⭐️ Star to support our work!
devtools - Replay.io DevTools
htmx - </> htmx - high power tools for HTML
redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development
Vue.js - This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
Dn-FamiTra
vercel - Develop. Preview. Ship.