BxJS - building React app with XState
Вставка
- Опубліковано 25 сер 2024
- This is a livestream in "Building X with javascript" series.
In this livestream I demonstrate how to build a simple React app with XState.
Project links:
Discord: / discord
Facebook: / buildingproductswithjs
Reddit: / buildingwithjs
Project sources: github.com/Bui...
Social media links:
Follow me on Twitter: / yamalight
Follow me on Medium: / yamalight
Follow me on Github: github.com/yama...
Follow me on Twitch: / yamalight
Follow me on Facebook: / buildingproductswithjs
Support my work: codezen.net/su...
Very cool job Tim, thank you for doin it 👍😁🦄
Мое почтение! Очень полезный и бодрый стрим!
Very cool tutorial
I have been hearing about it a lot and I can definitely see the advantages of using a well-defined set of states and actions. I will use it in my next project.
One question: Putting the whole machine in React Context.. is that the standard way of doing it? Does it have any performance downsides?
i think angular's ngrx for statemanagement is so robust that they didn't even bother :)
nice
I like the way u code .. btw, what’s the intelisense extension you’re using for your vscode ? It seems to hv a nice type hinting
just the stock stuff with a a couple plugins on top (specifically "npm intellisense" and "path intellisense")
Hey Tim, just wondering what the performance consequences of keeping all the machines within the same object is, specially while using context. Is there a reason why StoryMachine is not spawn in isolation?
I think for the majority of use cases - it shouldn't matter too much.
If you are hitting a specific perf issue with it - there's quite a few discussions on e.g. github on recommended tweaks.
less is more
I believe the project source link is wrong. Anyway thank for the great tutorial.
Whoops! Should be fixed now, thanks for letting me know :)
may I ask what kind of terminal you use?
it is Fluent terminal, got it.
@@alii4334 it's actually Windows Terminal [1] 😅 With zsh as shell and oh-my-zsh as config.
[1] github.com/microsoft/terminal
@@TimErmilov
It has the same icon!
can you refer me to a guide on how to add zsh to it?
I can't get it. If something is connected with react like state machine that is how new apps need to be build, otherwise is obsolete.
Stuff like apollo graphql can very much replace xstate (that is - if your API are done using graphql).
But yeah, that's definitely one of the best ways to do client-side business logic right now :)