Earlier quoted context omitted.
As someone who lightly dabbles in React my interpretation of that comment is “what’s not to like? It solves at least some of the problems React itself introduced!”
Is the state management problem unique to React? Do you not need to manage state in other libraries, like Angular or Vue or Solid?
A Rust-TypeScript integration
21–30 of 52 posts
Re: A Rust-TypeScript integration
#22Earlier quoted context omitted.
As someone who lightly dabbles in React my interpretation of that comment is “what’s not to like? It solves at least some of the problems React itself introduced!”
Is the state management problem unique to React? Do you not need to manage state in other libraries, like Angular or Vue or Solid?
If anyone is curious, here's an interactive, editable tutorial teaching how solidjs signals work. If you haven't seen solid before, its similar to react but components don't re-run whenever their state changes:
https://www.solidjs.com/tutorial/introduction_signals?solved
Am I missing out on some whiz bang magic that the react ecosystem has invented? Is it substantially better than what solid provides out of the box?
Re: A Rust-TypeScript integration
#23Why do you need a separate back-end in Rust? Nothing beats Next.js + React server components for me.
> Why do you need a separate back-end in Rust? Such a generic question, with probably hundreds of possible answers, it really depends on the context. From the top of my mind, whatever library/program you wanna use only being available in $Language comes to mind as something you encounter at least once in your career as a programmer.
That wouldn't be a reason to also write your CRUD backend in that language. You would just make it a separate service written in that language.
Re: A Rust-TypeScript integration
#24I use ts-rs [1] in my project to generate Typescript definitions. The files are copied to the web app automatically. [1] https://crates.io/crates/ts-rs
Re: A Rust-TypeScript integration
#25Earlier quoted context omitted.
Is the state management problem unique to React? Do you not need to manage state in other libraries, like Angular or Vue or Solid?
I've written a fair few Solid apps. I've never felt the need to reach for 3rd party tools to help manage state. In my experience, solid's built-in signals (& resources) are enough on their own for simple apps. And when I need something more complex, you can build on top of them if you know what you're doing. If anyone is curious, here's an interactive, editable tutorial teaching how solidjs signals work. If you haven…
Re: A Rust-TypeScript integration
#26Earlier quoted context omitted.
Is the state management problem unique to React? Do you not need to manage state in other libraries, like Angular or Vue or Solid?
Cant speak for Vue or Solid, but in Angular this has never been a big issue like it is in react. There is state of course but it is not something you have to actively think about all the time. State is kept as properties in classes, directly on your component or (when it needs to be shared) in services that can be injected. Angualar change detection will update the view when needed. You can argue about the performanc…
Re: A Rust-TypeScript integration
#27Earlier quoted context omitted.
> Why do you need a separate back-end in Rust? Such a generic question, with probably hundreds of possible answers, it really depends on the context. From the top of my mind, whatever library/program you wanna use only being available in $Language comes to mind as something you encounter at least once in your career as a programmer.
> From the top of my mind, whatever library/program you wanna use only being available in $Language comes to mind as something you encounter at least once in your career as a programmer. That wouldn't be a reason to also write your CRUD backend in that language. You would just make it a separate service written in that language.
Re: A Rust-TypeScript integration
#28Earlier quoted context omitted.
Cant speak for Vue or Solid, but in Angular this has never been a big issue like it is in react. There is state of course but it is not something you have to actively think about all the time. State is kept as properties in classes, directly on your component or (when it needs to be shared) in services that can be injected. Angualar change detection will update the view when needed. You can argue about the performanc…
Angular has NgRx, which is, AFAIK, the same as RTK.