TriggerPipelineOnClick
The TriggerPipelineOnClick
component will trigger the pipeline whenever its immediate child component is clicked.
This is implemented in the trigger by cloning any provided children and adding an additional onClick
prop.
important
- Note that this will override any existing onClick props.
- Take care to check that the provided children actually implement onClick.
This is especially the case when using custom-made components as most HTML tags already support the
onClick
prop.