You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's also possible to create React components with plain JS objects using the create-react-class package (although creating components this way seems to be depreciated):
From reading the docs it seems like this might be solved using structs and the extends attribute, but I'm pretty new to Rust and I'm having a tough time putting it all together. Are there any examples/tests/docs that could help out here? I imagine an implementation for HTML Custom Elements would require a similar solution. Thanks for your time.
The text was updated successfully, but these errors were encountered:
Hi there! This is probably a noob question so please feel free to close this issue.
I'm experimenting with creating React components in Rust and I'm trying to wrap my head around how this might work.
React recommends creating components with ES6 classes like so:
It's also possible to create React components with plain JS objects using the
create-react-class
package (although creating components this way seems to be depreciated):From reading the docs it seems like this might be solved using structs and the
extends
attribute, but I'm pretty new to Rust and I'm having a tough time putting it all together. Are there any examples/tests/docs that could help out here? I imagine an implementation for HTML Custom Elements would require a similar solution. Thanks for your time.The text was updated successfully, but these errors were encountered: