Signals In React Will BLOW Your Mind 🤯

Поделиться
HTML-код
  • Опубликовано: 12 сен 2022
  • Let's talk about signals - the new feature in town for Preact and React.js. Let's also explore what is Preact and how to use it in React. Demo link: codedamn.com/playground/mj3ti...
    If you've watched this video till the end, drop a comment below and let us know! 💜
    ⚛️ Do you want to become a full-stack web developer? Check out codedamn's full-stack learning path: cdm.sh/fullstack
    ⚛️ Get started with web3 and decentralized technologies today: cdm.sh/web3
    👉 Checkout codedamn on social:
    ✨ Instagram: cdm.sh/ig
    ✨ Twitter: cdm.sh/twt
    ✨ Discord community: cdm.sh/discord
    ✨ Facebook: cdm.sh/fb
    GitHub: cdm.sh/github
    If you found the video valuable, please leave a like and subscribe ❤️ It helps the channel grow and helps me pumping out more such content.
    ✨ Video Tags ✨
    What is Signal in React.js?
    What is Preact?
    How To Use Preact in React?
    Signals in React: EXPLAINED
    Latest Features in React: Learn NOW
    ✨ Hashtags ✨
    #programming #2022 #technology #reactjs #coding

Комментарии • 172

  • @codedamn
    @codedamn  Год назад +18

    Let's talk about signals - the new feature in town for Preact and React.js. Let's also explore what is Preact and how to use it in React.
    If you've watched this video till the end, drop a comment below and let us know! 💜

    • @kumailn7662
      @kumailn7662 Год назад +1

      i was assuming singal won't cause the re-rendering of the component itself. its not awesome state will works the same.

  • @ejirocontent
    @ejirocontent Год назад +32

    This takes away the mental overhead of working with hooks. Looks similar to composable functions in Vue

  • @vikingthedude
    @vikingthedude Год назад +25

    The state tree is usually much shallower than the component tree. Hence the “components hold state” model has limitations. I like this new paradigm of separating the component tree from the state tree, and making stateful components subscribe to the state instead of containing it.

    • @baka_baca
      @baka_baca Год назад +1

      Well said

    • @catalintudorciurte309
      @catalintudorciurte309 Год назад +3

      Yea, the old MVVM pattern.

    • @Almighty_Flat_Earth
      @Almighty_Flat_Earth Год назад

      React js is a shame and blasphemy to JavaScript community. Governments should ban the use of this stupid library. Same functionalities can be achieved with Angular and Svelte with less frustration, so what's the point of using the stupid react js which makes web development unnecessarily complicated.? Those who use react are slaves.

    • @RudraSingh-pb5ls
      @RudraSingh-pb5ls Год назад

      Guys may i plz know where did u gather this knowledge from regarding the component tree and state tree ?

    • @BosonCollider
      @BosonCollider Год назад

      @@Almighty_Flat_Earth Preact + signals basically fixes every single issue with react, and signals give the same fine grained reactivity and speed as Svelte stores without requiring a compiler, just a tiny library, while still maintaining runtime flexibility instead of needing to know the layout at compile time.
      My issue with Svelte and Angular is that their build steps are horrible, and using them is basically asking for legacy issues once the project is five years old. While using a framework which is just a small js library mostly circumvents that problem.

  • @blessdarah1256
    @blessdarah1256 Год назад +12

    This make me want to look at SolidJs more and more because they have this kind of idea working for them.

    • @bigmistqke
      @bigmistqke Год назад +5

      Yes. I can highly recommend. Solid is awesome. Preact/signals is cool, but never ever having to worry about re-renders or weird stale states like w solid is just awesome. In the end u just don't need that v-dom if u also have reactivity

    • @brandonj5557
      @brandonj5557 Год назад +3

      Switch from React to Solid recently for my startup & it's been great so far. Solid has solved so many state issues that's plagued React for years. With Solid you don't need a state-manager & Solid has some extremely good docs

  • @harshchauhan4549
    @harshchauhan4549 Год назад +7

    Signals is the thing i was looking for..maintains state all along without much implementation and dont have to store all the props of page( redux) .

  • @MrJatan90
    @MrJatan90 Год назад +7

    I love the idea of taking state out of the funtional component and centralizing it. But, it sounds eerily similar to valtio and Zustand. Or they are different?

  • @Cowglow
    @Cowglow Год назад

    I watched this video till the end. I am subscribed and have the notification bell turned on! Thank you!

  • @andyengle
    @andyengle Год назад +1

    I watched this video to the end. Good stuff!

  • @bigmistqke
    @bigmistqke Год назад +15

    So cool how they made it available to use with react. Preact is in a weird position of being react-compat so being stuck a bit within those limitations, but this move of innovating and bringing that innovation to react is a really smart move. Those granular dom updates are very smart and makes it set itself apart from other reactive state management libraries for react.

  • @WyvernDrexx
    @WyvernDrexx Год назад +2

    How would you maintain the state of the variable and keep tract of the changes when the value can be changed from anywhere? There would be an overhead of keeping track of the changes from different components.

  • @halilceyhan4921
    @halilceyhan4921 Год назад +42

    Inspired by Solidjs

    • @ashutoshgarg9126
      @ashutoshgarg9126 Год назад +9

      Not inspired, it's a direct copy

    • @bigmistqke
      @bigmistqke Год назад +4

      And Vue.

    • @bigmistqke
      @bigmistqke Год назад +4

      @@ashutoshgarg9126 naa that's just not true. If anything it's kinda weird they didn't steal it more. Maybe it's to make the distinction between signals and state, idk.

    • @ashutoshgarg9126
      @ashutoshgarg9126 Год назад +1

      @@bigmistqke anyway it would be a challenge to integrate signal with existing react code base

    • @picklenickil
      @picklenickil Год назад +3

      More like fanboy artwork. Have u seen the code? It's so **umm**

  • @0xedb
    @0xedb Год назад +5

    This sounds exactly like what Valtio state management library does.

  • @MateoHrastnik
    @MateoHrastnik Год назад +4

    We had this in MobX years ago! Wrap some state with `observable` and wrap your component with `observer` and state just works. Preact signals have the benefit of not needing to wrap your component which is nice.

    • @dealloc
      @dealloc Год назад +1

      Depends on how you see it; it patches React internals to achieve this, which is questionable at best and at worst will break your app if you update React to a version which changes the internal implementation. It also means it breaks backwards compatibility, so you have to use React at specific version ranges and cross your fingers it doesn't break in the future.

    • @marvin_hg
      @marvin_hg Год назад +1

      MobX was definitely one of the main inspirations. Was a heavy MobX user back in the day and I always liked the consistency of their reactive system. With Signals we wanted to build something that feels less object-oriented and forgoes the wrapper function like you said.

    • @MateoHrastnik
      @MateoHrastnik Год назад

      @@marvin_hg I don't understand why mobx uses classes in their docs. It's perfectly usable with only the observable fn and the observer hoc. Do signals have other goodies like autorun, reactions, when, computed etc?

    • @marvin_hg
      @marvin_hg Год назад

      @@MateoHrastnik Yep, MobX can be used without classes too but then you have to ask yourself why people don't use it that way? The innovation with signals isn't the reactive layer itself, although the one in signals it's pretty nice. The innovation is the developer ergonomics they enable. Dropping the need for a wrapper observable fn is a big deal for lots of devs.

    • @MateoHrastnik
      @MateoHrastnik Год назад

      @@marvin_hg have you seen Legend State. What are your thoughts on it. It looks similar to signals.

  • @swikarsharma3118
    @swikarsharma3118 Год назад +2

    why not we use valtio which also works on concurrent mode?

  • @WhiteSponge
    @WhiteSponge Год назад +5

    SolidJS says hi lol
    Jokes aside even if you can use Preact's signals with React, components in React still can get run more than once.
    That doesn't happen for SolidJS components though :)

  • @jaymartinez311
    @jaymartinez311 Год назад

    FINALLY. I forgot this channels name and I couldn’t find it. Happy to see your content again. Stupid algorithm 😂

  • @shinxz2098
    @shinxz2098 Год назад

    Is it like react's Context but without the re-rendering every subscriber problem?
    whats the downsides then?
    im using rtk cause of the problem above and searching for much simpler option, is it safe much?

  • @devpatidar84
    @devpatidar84 Год назад +1

    I watched this video till end !

  • @tamizharasanbe
    @tamizharasanbe Год назад

    I personally like Jotai for these type of client or local side state management but this takes away the overhead completely. Very interesting

  • @webmandman
    @webmandman 7 месяцев назад

    will react replace hooks with signals or have both eventually?

  • @autobochi5229
    @autobochi5229 Год назад

    this is just like zustand, im already using it in my project and it provide a lot more tools that signals

  • @shafiqshams3065
    @shafiqshams3065 Год назад

    Oh bro, this literally blew my mind! #AmazingWork.

  • @niteshraut1430
    @niteshraut1430 Год назад +1

    is this similar to observables in Rx JS ?

  • @yabuking84
    @yabuking84 4 месяца назад

    Im not sure whats happening but using .value ex `{varSignal.value}` is not rendering, if I remove it it renders. And seems to be an issue when using boolean. Im using react 18 by the way.

  • @CodeDreamer68
    @CodeDreamer68 Год назад

    Nice. Thanks for sharing.

  • @topics305
    @topics305 Год назад

    Is it similar to state management in sveltekit?

  • @rajankonar90
    @rajankonar90 Год назад

    Great Content, Subscribed and Liked.

  • @dereksniper
    @dereksniper 2 месяца назад

    can you conditionally render using signals?

  • @thedigitalceo
    @thedigitalceo Год назад

    This can be very promising!

  • @subodhpareek18
    @subodhpareek18 Год назад

    How would this be better tan lets say zustand or jotai?

  • @prantikmondal4570
    @prantikmondal4570 Год назад +3

    Wow. So cool feature. I am not fan of redux. So this new alternative feature made me happy...

  • @ehsankhorasani_
    @ehsankhorasani_ 11 месяцев назад

    I didn't get it, didn't we already have this with Jotai.
    I thought maybe it only re-render the component that use it, but it actually re-render the whole component

  • @dealloc
    @dealloc Год назад +2

    Note that it doesn't hook _into_ React but patches React internal APIs in order to work. Even on the Preact side it overrides `shouldComponentUpdate` implementation to memoize every component that uses signals, and doesn't call the original `shouldComponentUpdate`, which means that it breaks other libraries that also patches `shouldComponentUpdate`.
    I'll stick with jotai for simple atomic global state :)

    • @RudraSingh-pb5ls
      @RudraSingh-pb5ls Год назад

      Can u plz explain in a simpler language ? I m actually new to reactJs

    • @dealloc
      @dealloc Год назад

      @@RudraSingh-pb5ls It means that the library relies on how React works internally and override some functionality in order to work the way it does.
      If React changes these internals, the library will not work until it has been updated; if the library happens to not be supported in the future for one reason or another, it is no longer usable if you decide to update React.
      You trade off usability for maintenance burden, unlike most other solutions that were made a long time ago, which still work. It's not as clear cut, but that is the gist of it.

    • @BosonCollider
      @BosonCollider Год назад

      @@dealloc On the other hand, if you end up using preact entirely instead of react, preact will always be supported by preact signals. Which also has the benefit of reducing bundle size and being able to hold the entire internal implementation of the framework in your head.

  • @dixztube
    @dixztube Год назад

    Is this different than zustand? Or how is it

  • @adityatripathi1904
    @adityatripathi1904 Год назад +1

    Yeah coming back to MVC gradually, Like SSR. Not at all surprised.

  • @freesun9888
    @freesun9888 Год назад

    How about recoil? build by facebook, same idea of taking states out of component. you just need to define atom() in some file and in the component replace useState to useRecoilState(atom), then your state will be global, and you can also useRecoilState(atom) in many other components, if you trigger setter in one component, then all components using the same atom will rerender.
    I know the difference is that, recoil is an use-hooks, which usage is restricted by lots of hooks rule while preact-signal can be used more freely. Is there any other benefit that preact-signals brought?

  • @user-ie1xg3he4t
    @user-ie1xg3he4t 7 месяцев назад

    It is essentially a concept taken from Vue 3. Vue 3 framework has been way ahead of its time.

  • @Aditya.Santra
    @Aditya.Santra Год назад

    Wow, amazing 👍

  • @AykutKlc
    @AykutKlc Год назад +1

    What is the difference from recoil?

  • @ashutoshsingh8867
    @ashutoshsingh8867 Год назад

    Awesome ❤

  • @DhananjayNaik
    @DhananjayNaik Год назад +3

    Great, Preact and React are getting Solid..........js

    • @user-ie1xg3he4t
      @user-ie1xg3he4t 7 месяцев назад

      And Solid.js is getting more Vue 3

    • @DhananjayNaik
      @DhananjayNaik 7 месяцев назад

      @@user-ie1xg3he4t solid start you mean

  • @ankitpanchal7554
    @ankitpanchal7554 Год назад

    cana we use it with react native

  • @rajeev2127
    @rajeev2127 Год назад +2

    I guess recoil also solves the same problem. I'm not sure though please someone confirm

  • @dudu1533phpify
    @dudu1533phpify 7 месяцев назад

    Does it work with react native?

  • @sarfarajshekh69
    @sarfarajshekh69 Год назад

    It's amazing

  • @gamingwolf3385
    @gamingwolf3385 3 месяца назад

    Can i use those signals in react/next

  • @m.harshavardhan
    @m.harshavardhan Год назад

    If that is the case, why not use Ref instead. Changing refs dpes not trigger a re-render too. So how is this any different. Can you explain or am I missing something?

    • @codedamn
      @codedamn  Год назад +4

      Changing a ref wouldn't update the content as well.

  • @juliohintze595
    @juliohintze595 Год назад

    So... basically the same thing as Valtio?

  • @shubhamjambhulkar4901
    @shubhamjambhulkar4901 Год назад +1

    how is this different from rxjs observable

  • @naveed-h
    @naveed-h Год назад +1

    Yayyy.... React found a way to fix another issue that it should not have in the first place. React is so good!

  • @harshchauhan4549
    @harshchauhan4549 Год назад +1

    will it be possible to send large props from one page to another in next js using signals bro ?

  • @rajdeepchandra9807
    @rajdeepchandra9807 Год назад +2

    How difficult would it be if my signal store becomes huge. Now to change a particular key which is deeply nested I need to go through many levels inside the object tree which is time consuming.. Your thoughts!!!

    • @andycyz
      @andycyz Год назад +3

      Maybe just keep the signal store small will help. And have a lot of small signal stores.

    • @brandonj5557
      @brandonj5557 Год назад +1

      Just create multiple stores

    • @baka_baca
      @baka_baca Год назад

      Yep, just create as many stores as you need.
      Also, just write your own setter functions if that makes your life easier.

    • @rebeccakeller4666
      @rebeccakeller4666 Год назад

      Recoil seems more mature and more scenarios well thought out. But also idk what its future is. I hav3 loved recoil thus far and its design looks to handle deep trees very well

  • @DJenriqez
    @DJenriqez Год назад

    So basically its same as zustand ?

  • @hassib291
    @hassib291 Год назад +1

    Isn't this availble through redux stores already. any component that is getting state(property) from the store will rerender if the store state(property) got updated.

    • @MCJini
      @MCJini Год назад

      a lot of boiler plate....

    • @81NARY
      @81NARY Год назад

      @@MCJini Try zustand, jotai or valtio. All of them are very minimal, they all use the selector pattern to avoid re-rendering the whole tree and are compatible with SSR.
      Zustand - immutable state
      Valtio - mutable state
      Jotai - atomic state

  • @GeeBeisH
    @GeeBeisH Год назад

    I watched this video till the end

  • @mukulr5171
    @mukulr5171 Год назад

    🔥

  • @DanielRios549
    @DanielRios549 8 месяцев назад

    Basically, they bring Vue and Svelte way to deal with states to React, this is the same as in Vue 3 and a liite bit different from Svelte, but it is good as all of them, no way to use React Hooks again

  • @harrytwigg111
    @harrytwigg111 Год назад +1

    Looks a lot like Apollo reactive variables

  • @uttamsharma3242
    @uttamsharma3242 Год назад

    there is also a pub-sub pattern in js

  • @juliasetiawan9784
    @juliasetiawan9784 Год назад

    Have u tried in Next JS?

  • @tejasshekar
    @tejasshekar Год назад +1

    Cannot find the playground link that you said will be mentioned in description or comments 😅

    • @codedamn
      @codedamn  Год назад +1

      Added to the description. Thanks :)

    • @tejasshekar
      @tejasshekar Год назад

      @@codedamn Thankyou

  • @mariselvan
    @mariselvan Год назад +1

    Looks like store in Svelte

  • @billypentester
    @billypentester Год назад

    Can it replace Redux?

  • @eduardstefan6833
    @eduardstefan6833 Год назад +2

    Isn't this exactly what Jotai is doing with atoms?

  • @KiranKumar-zb2fb
    @KiranKumar-zb2fb Год назад

    i think it is worth if you don't use routing other wise go with redux .

  • @Asghar-Hassan
    @Asghar-Hassan Год назад

    Doesn't valtio do the same thing?

  • @amaljose3399
    @amaljose3399 Год назад +2

    Signal feels like MobX state management library

    • @harvolev
      @harvolev Год назад

      I had this same comment with a maintainer :D Similar observer pattern the difference is the "lazy" concept of when something subscribes to the updates so there's less memory overhead

  • @FacadeMan
    @FacadeMan Год назад

    Now this seems to be messy at scale. In a big application, any component could be updating this signal, how would someone debug which component is causing the bug?

    • @baka_baca
      @baka_baca Год назад +2

      In the wild, I would likely write up some functions to help with state updates for tracking purposes if you really need that. Otherwise if your app is small, don't bother and save the boilerplate.
      I've done this sort of thing with Svelte and loved it.
      I don't need a library to "force" me into writing code a certain way, I'm happier using a more primitive approach like this so I can adapt to whatever situation I'm coding for. I've seen Redux and Vuex just make giant messes by trying to force devs into doing things their way to achieve what you seem to be talking about, often ending up with a solution I didn't want but just kind of lived with.
      This simple approach is my kind of thing.

  • @durgaprasad814
    @durgaprasad814 Год назад

    Zustand is very similar to this.

  • @waseksamin3216
    @waseksamin3216 Год назад

    So basically zustand. But it's cool that we have more options.

  • @DjLeonSKennedy
    @DjLeonSKennedy Год назад

    I don't understand what is problem to share state via context in React?

  • @abhijitmitra4665
    @abhijitmitra4665 Год назад +4

    This is not really a good pattern to set value from anywhere. This is not looking scalable. Imagine if the value is getting set from multiple places , the maintaining large projects with signals will be difficult I feel. React can introduce signals, but they want to have single setter for any state updates, so that it becomes easier to track from where the setter actually getting invoked.

    • @bigmistqke
      @bigmistqke Год назад +1

      In which way would preact/signals be different then another state manager? They all share that same 'issue', no?

  • @mbehboodian
    @mbehboodian Год назад +1

    Welcome to a new source of headache in your projects, global variables!

  • @faysalahmed2579
    @faysalahmed2579 Год назад

    it look like vue composition api

  • @LaundeyLapatey
    @LaundeyLapatey Год назад

    its almost same as atom in jotai

  • @Thesamratat
    @Thesamratat Год назад

    Solidjs inspired Preact.

  • @abhinavdc
    @abhinavdc Год назад +1

    Rxjs says Hi..!

  • @aseep0109
    @aseep0109 Год назад +1

    it's look like Zustand 🤔

  • @urisrssfeeds
    @urisrssfeeds Год назад

    I think you missed the point dude. Context also doesn't re renders in the case you gave. The big win is with DX.

  • @szeredaiakos
    @szeredaiakos Год назад

    Its almost like having an object doing a method call to another object.
    Apart from the .x language and the reactive design pattern React never brought anything new to the table and will never will. Those 2 things are very powerful, but beyond that, nothing related to React will ever blow the mind of any programmer or application architect.

  • @jorgedavalos5663
    @jorgedavalos5663 Год назад +1

    isnt it stole from solid?

  • @iiNoorbd
    @iiNoorbd Год назад

    Just use Zustand

  • @philheathslegalteam
    @philheathslegalteam Год назад +1

    Sounds like Valtio

  • @bharatbhakt
    @bharatbhakt Год назад

    Isn't it something just like Jotai/ recoil?

    • @philheathslegalteam
      @philheathslegalteam Год назад

      Its copy paste of Valtio. We’ve had this supported for many years already. Its not new

  • @illker.
    @illker. Год назад

    its like jotai, i would use jotai instead.

  • @calderarox
    @calderarox Год назад +1

    This is like valtio but better

  • @MrEnsiferum77
    @MrEnsiferum77 Год назад +4

    What a crap web community is. Few years back everyone was loosing their minds that we have so many plugins and options to choose from in javascript eco system. In 2022, everyone is losing their minds by signals after web kids finally realize, that hey, maybe observable is the right thing we need so our apps be more performant and flexible. RxJS is solving that from the beginning, and OS event system scalability is based on this stupid thing about reacting on events for ages.

  • @DevSolution
    @DevSolution Год назад

    Lol, this is standard in Vue and Svelte

  • @JeffKlunder
    @JeffKlunder Год назад

    Hi there. Perhaps I'm a bit zealous, but your demo link seems to be broken..

    • @JeffKlunder
      @JeffKlunder Год назад

      My bad. I had to first create an account. Now I can view your demo.. sorry for the misunderstanding

  • @srivathsaharishvenk
    @srivathsaharishvenk Год назад +1

    such a shame how cool angular could have been if many were using it, all these were possible in angular long time ago,

    • @saad6948
      @saad6948 Год назад

      Are you talking about the output event emitter?

  • @ThomazMartinez
    @ThomazMartinez Год назад +1

    WTF dude global stores like Redux does the same thing it re-renders that components that is subscribed to that store / state. And in the begining of the video you are talking that this does not re-render when you clearly shown it does

    • @bigmistqke
      @bigmistqke Год назад +1

      Well, if you use it directly in the JSX without calling them it creates a pseudo-component around them, so then it does not re-render the parent-component but only that pseudo-component.

  • @h.nazmulhassanrakib5058
    @h.nazmulhassanrakib5058 Год назад +4

    It's time to kick React. Now Svelte is the front end king in any side.

  • @jakhongirabdukhamidov2796
    @jakhongirabdukhamidov2796 Год назад

    Jotai ???

  • @AnthonyPaulT
    @AnthonyPaulT Год назад

    This is the same as reactive variables from Apollo. Nothing new

  • @ammarmughal91
    @ammarmughal91 Год назад +5

    Svelte and vue already do it in much nicer way... React is just like apple, they think they have achieved something nobody ever thought of but its already there and implemented in much much much nicer way... lol

    • @MrrobotIV
      @MrrobotIV Год назад +1

      SveLtE and Vue aLrEady dO it in mUcH NicEr wAY... ReAct iS Just Like aPpLE, tHeY tHiNk tHEy hAvE aChieVed sOmEtHIng NoBody EvER thOugHt oF But ItS aLreAdy TherE and iMpleMEnTEd in mUch MuCh muCh nIcER wAy...

    • @baka_baca
      @baka_baca Год назад +1

      What is Vue's implementation for this?
      Having used Vue quite a bit before, I haven't quite seen this feature in it, and the closest things I can think of like this are far from nicer or easier to use. Sorry, my experience with Vue, at large scale anyway, has shown me just how messy and difficult it can be to use, not just for me but for every team I've seen use it. So far Vue is the only technology I have specifically requested I not be given at work.
      Svelte on the other hand, yes they already have this sort of thing and yes it's implemented quite well and seems easier to use. I wish I could use Svelte at my job.
      To me, this is a nod to Solid js, which has not only the same concept but also calls them signals.

    • @BosonCollider
      @BosonCollider Год назад

      Vue has the nice reactivity part, but not the "avoid rerendering" part. There are a couple of microframeworks achieving similar speed with vue's reactivity module but without vue's vdom implementation, and using JSX instead of Vue templates.

  • @jatinhemnani1029
    @jatinhemnani1029 Год назад +1

    Isn't this same like Jotai? Jotai is better imo

    • @ridoyhossain4701
      @ridoyhossain4701 Год назад +2

      one difference is you have to use hook to use state to the component and this is not required any hook. And I love Jotai.

    • @jatinhemnani1029
      @jatinhemnani1029 Год назад

      @@ridoyhossain4701 Yeah I am gonna use Jotai till Signal is stable enough

    • @ThomazMartinez
      @ThomazMartinez Год назад

      @@ridoyhossain4701 use zustand then no need to use use* if you want to pass to function

  • @RezaMohseni
    @RezaMohseni Год назад +1

    just like vue :)

  • @ImLlaver
    @ImLlaver Год назад

    This is just a worse version of recoil or jotai

  • @sunny7268
    @sunny7268 Год назад +5

    that is kind of stealing from solid js in my opinion ....

    • @Shuyinz
      @Shuyinz Год назад +10

      That is how the tech world is all about. You are learning from others and then improving your own product.

    • @bigmistqke
      @bigmistqke Год назад +2

      I really like they called it signals and made that obvious homage to solid. I find it kind of funny they decided to go for this API choice (it's Vue right, always forget which one is the reactive/vdom one) instead of the more react-idiomatic setter/getter-tuple, but maybe it was their way of giving credit to the other reactive/vdom combo.
      It's just crazy that there is no first-class state management solution for react (sorry, but local state, prop drilling and context really is really not enough), so it makes sense preact made one themselves. The whole granular-trick w creating this pseudo-component if you do not call the signal-function in your JSX (dunno if that also works in react? Didn't finish the video yet) is really cool I think, and afaik really an innovation on their part.
      So ye, innovation inspiring other innovation. And if you like preact/signals, you are gonna love solid. At some point you just wanna get rid of that v-dom i think.

    • @night23412
      @night23412 Год назад

      its all open source software anyway so It's not like its a bad thing right?

    • @sunny7268
      @sunny7268 Год назад

      @@night23412 creator of faker js thought otherwise 😂

    • @philheathslegalteam
      @philheathslegalteam Год назад

      This is stealing from Valtio. We’ve had this functionality for years already

  • @sairam-du7ip
    @sairam-du7ip Год назад

    thank you so much. redux sucks