Pitasi / rscx

Rust Server Components. JSX-like syntax and async out of the box.
https://rscx.dev/
MIT License
64 stars 6 forks source link

[Feature] Inline prop definition inside component signature #1

Closed wrapperup closed 1 year ago

wrapperup commented 1 year ago

I've been toying with this library, and it's a lot of fun. I've been looking for some kind of templating that supported context dependency injection like Leptos, awesome stuff!

It looks like this is planned from reading the source, but having props defined in the function signature to generate the Props struct, just like Leptos, would be nice. I'd love to make a PR for this if you're interested in help.

Pitasi commented 1 year ago

Sure, feel free to do it! I'll be glad to accept a contribution 😁

There's no CONTRIBUTING.md file at the moment because I just rushed things. I plan to add it, but of course everyone is welcome to contribute.

thomaseizinger commented 1 year ago

I also want this! I'll see if I can hack a PR together :)