It's a nice demo, thanks. It would also be cool to see more of a production use case. The problem you talked about with forms sounded interesting but I'm not able to visualize how you'd use generic components in that situation.
Glad you like the demo and hopefully it will be helpful. Production ready examples can only reproduce in real time but will try my best recreate a scenario and share in future videos
can also use it :React.FC: import { FC } from 'react'; const List: FC = ({ items, renderItem }) => { return ( {items.map((item, index) => ( {renderItem(item)} ))} ); };
It's a nice demo, thanks. It would also be cool to see more of a production use case. The problem you talked about with forms sounded interesting but I'm not able to visualize how you'd use generic components in that situation.
Glad you like the demo and hopefully it will be helpful. Production ready examples can only reproduce in real time but will try my best recreate a scenario and share in future videos
can also use it :React.FC:
import { FC } from 'react';
const List: FC = ({ items, renderItem }) => {
return (
{items.map((item, index) => (
{renderItem(item)}
))}
);
};