title: Return an object as Function in Reactjs
body: <p>Hi I'm looking for more advice than code really. I made an object that contain a deck of cards with methods that shuffles, pluck, and things of that nature. I stored this object in a component and thought that it would be a good idea import this object into the parent component by returning the entire object and importing to treat it like a function. However, it seems that react components only returns JSX. Is there something that I'm missing or is there another way? I do not know. Please help me</p>