React Signals tutorial - practical guide

  Рет қаралды 5,654

Code with Ahsan

Code with Ahsan

Күн бұрын

Пікірлер: 32
@CodeWithAhsan
@CodeWithAhsan 2 жыл бұрын
Do you think this is better than Redux? Or will you keep using Redux? Or is there a different State Management library that you prefer?
@greekapostle4548
@greekapostle4548 2 жыл бұрын
I prefer angular forever 😍
@CodeWithAhsan
@CodeWithAhsan 2 жыл бұрын
@@greekapostle4548 hahah!! For sure!!! Angular FTW
@naseeriyat9241
@naseeriyat9241 2 жыл бұрын
It will be a bit difficult to shift from reduced 😊
@CodeWithAhsan
@CodeWithAhsan 2 жыл бұрын
Changes are always difficult. True
@JakubSK
@JakubSK Жыл бұрын
No need for redux with the native components built into React for a while now.
@codemonkeynorth7503
@codemonkeynorth7503 7 ай бұрын
Better to just use {count} instead of {count.value} in your jsx part, because it doesn’t cause the whole component to rerender on change, it just updates that placeholder
@garcipat
@garcipat 3 ай бұрын
Is this with the AuthSignals the recommended way to store the values?
@question_ij
@question_ij 11 ай бұрын
Hi...i love ur video could you tell me how u edited, mostly putting ur social handle in d video. Thanks
@riddy6421
@riddy6421 Жыл бұрын
Nice Video. I'm trying to use signals, but it seems they don't work with `react-navigation` ?
@CodeWithAhsan
@CodeWithAhsan Жыл бұрын
What error did you face with signals and React navigation ?
@pranjuljain6025
@pranjuljain6025 9 ай бұрын
First time in my life where library(@preact/signals-react ) is not working
@SahraClayton
@SahraClayton 2 жыл бұрын
Do Preact signals work with React version 18, I can't remember who's video I watched but I thought they said that signals do not work with React concurrent mode. I might of heard that wrong. They do look very good though, seems to solve some of React's problems.
@CodeWithAhsan
@CodeWithAhsan 2 жыл бұрын
Yeah, they definitely solve the prop drilling and state management issues. Even out of the components’ scope. I tested it with the latest version of React in this video. I haven’t specifically tested with a deep dive in concurrent mode yet
@SahraClayton
@SahraClayton 2 жыл бұрын
@@CodeWithAhsan Thanks for replying, sorry but could you tell me a brief overview of what React concurrent mode is. I am new to web development and the coding bootcamp I am on hasn't covered what concurrent mode is.
@EthanStandel
@EthanStandel 2 жыл бұрын
Shameless plug, but if you want Signals to scale like a full state management solution, you grab preact-signal-store. Currently it only supports Preact, but I'm working on converting it to a monorepo that exports a package that works with React as well.
@CodeWithAhsan
@CodeWithAhsan 2 жыл бұрын
Hey! That’s awesome 👏
@yabuking84
@yabuking84 9 ай бұрын
Maybe add which signals package to install. Not sure why you skipped that.
@tonyohagan1195
@tonyohagan1195 Жыл бұрын
Wow! React has caught to Vue.
@CodeWithAhsan
@CodeWithAhsan Жыл бұрын
Looks like it. And we have Angular introducing signals soon too. Exciting times!
@AbdulBasit-to2xr
@AbdulBasit-to2xr Жыл бұрын
It updates the value like "count.value++". Does it mean it does update the value in a mutable way? what if we have a complex data like var foo = signal({ a: 1, b: 2, d : { e: 5 } }) should I have to update the original object like foo.value.d.e = 10 // update the e value ??
@olesodynets979
@olesodynets979 11 ай бұрын
Signals can be nested. So in this example it would be: signal({ a: signal(1), b: signal(2), d: { e: signal(5) } }) Or, if you're planning on updating "d": signal({ a: signal(1), b: signal(2), d: signal({ e: signal(5) )} }) // Wrapped "{e:signal(5)}" into another signal ---- I recon, this approach will lead to a lot of pain when trying to manage complex states.
@mognomoinak1309
@mognomoinak1309 3 ай бұрын
Hi Ahsan, can you please share the source code on github or something similar. I would be very greatful.
@brencancer
@brencancer 2 жыл бұрын
great content
@CodeWithAhsan
@CodeWithAhsan 2 жыл бұрын
Thanks 🙏
@question_ij
@question_ij 11 ай бұрын
Hi...i love ur video could you tell me how u edited, mostly putting ur social handle in d video. Thanks
@CodeWithAhsan
@CodeWithAhsan 11 ай бұрын
Hey there. I use davinci resolve for editing my videos :) I had the overlay (with green screen) created from a video editor. I just use that in all videos now.
@question_ij
@question_ij 11 ай бұрын
Okay thank you
@question_ij
@question_ij 11 ай бұрын
Have a second question. I tried coding along but I got stuck it not working or updating I use react18 I don't know why. Thank you
@kalisiCheddam
@kalisiCheddam 19 күн бұрын
@@question_ij Even I am stuck at the same problem. Did you resolve it?
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 489 М.
Signals For Solid, Qwik And React
28:17
Jack Herrington
Рет қаралды 48 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 9 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 163 МЛН
Don't Use React Context!! Use This instead
13:34
CoderOne
Рет қаралды 29 М.
Goodbye, useEffect - David Khourshid
29:59
BeJS
Рет қаралды 503 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 25 МЛН
Databutton: The Ultimate AI App Builder - Beats V0, Cursor & Bolt!
27:56
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 203 М.
React + RxJS = Reactive Global Goodness
26:46
Jack Herrington
Рет қаралды 43 М.
Using @preact/SIGNALS to optimize React.js PERFORMANCE | Talk @ JS Fwdays Meetup Krakow 11.05.2023
25:32
Understanding Signals
8:04
Academind
Рет қаралды 36 М.