BAP client: able to extend React component

Hi everyone,

Would it be possible to extend React component from BAP client?
For example: A, B and C are React components from BAP client, if if would like to extend component C:

B {
	render() {
		return <C/>;
	}
}

A {
	render() {
		return <B/>;
	}
}

Then I would not expect to do something likes:

MyC extends C {
	render() {
		return "Xin chao!"
	}
}

MyB extends B {
	render() {
		return <MyC/>;
	}
}

MyA extends A {
	render() {
		return <MyB/>;
	}
}

Long story short, inheritance is not possible most of the time, because we use primarily functional components (see " Components and Props").

With this we try to follow the React main concepts to keep the usage of our components simple.

React has a powerful composition model, and we recommend using composition instead of inheritance to reuse code between components.

This is well documented in the react documentation under “Composition vs Inheritance”.