I guess doing <Panel {...panelProps} or {renderPanel({ props... is the way to go. One major drawback with returning a variety of components from a hook, is that you lose out on tree shaking.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I guess doing
<Panel {...panelProps}
or{renderPanel({ props...
is the way to go. One major drawback with returning a variety of components from a hook, is that you lose out on tree shaking.