React calling component function outside of the component – Reactjs
I have a functional component: function Tile(props: any) { const selectTile = (() => { ... }) return ( <div> ... </div> ) } I then create another functional component which will hold many tiles. function Grid(props: any) { const…