The Inject component let you use the registry to render named component
using the registry. It will not break the app if component is not found
but it will display an error.
- Source:
Example
import { Inject } from '@talend/react-cmf';
// this is not the best example but it show the concept
function MyComponent(props) {
return (
<Inject component="Action" onClick={props.onClick}>
<Inject component="Icon" icon={props.icon} />
</Inject>
);
}