The documentation around Microsoft's recently released ReactXP doesn't have much information about the RX.Component
class at the moment.
Here's an example from the documentation:
class HelloWorld extends RX.Component<void, void> {
render() {
return <RX.Text>Hello World</RX.Text>;
}
}
- What are the features offered by
RX.Component
overReact.Component
? - How does it influence the life-cycle of the base
Component
class?
This is an important consideration for me because best practices for React components typically encourage composition over inheritance, except for very basic scenarios like PureComponent
. Would the features provided by RX.Component
justify the inheritance?