pnicolaou
01/10/2018, 9:54 PMconst MyComponent = () => <div>hi</div>
Is it possible to call that component as a function inside another component. Like so
const SecondComponent = () => {
myFunction = () => {
MyComponent()
}
return <div>hi</div>
}