DEV Community

Discussion on: Create a React / TypeScript Generic Component

Collapse
 
mohajerimasoud profile image
Masoud Mohajeri

not simple and stupid enough

Collapse
 
fabiobiondi profile image
Fabio Biondi

do you mean the example should be simpler?

Collapse
 
mohajerimasoud profile image
Masoud Mohajeri

No , the whole Generic Component idea is not simple and stupid enough.
there are some good use cases and I have used it a couple of times but usually is not the best choice

Thread Thread
 
fabiobiondi profile image
Fabio Biondi

ah ok.. Sure. It's just an example of use case.
I agree and I don't know use it a lot too : )

Thread Thread
 
thiago-coderr profile image
Tiago_908

I cannot setup my react project with vite. Can you please help me