Integration Between Components

It is possible to make a composition between the components used in the builder. To import a component that has already been created and is being used by the builder, the import must be done like the one below:

import {RadioComponent} from 'api/form-components/radio-component';

'api' is the module where all the components are registered; to import use import {component-name} from 'api / name-component', 'api' acts like a proxy returning the name of the requested component.

After RadioComponent is imported it is ready to be used, passing the necessary props that the component needs for its correct operation.

That’s the result of this component composition, it now has a checkbox component next to graph component.

Figure 10. Component Composition.