DINO – 23-15 Aug 22
One of the things I struggle with React & TS is how to properly declare a component. So here are 2 ways to do write a Button component: https://hastebin.com/ekirogebob.js. Is the first approach the most ideal one? And is there any ideas about this topic? Thanks.
Hastebin: Send and Save Text or Code Snippets for Free | Toptal®
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
4 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
This doesn't sound like a good practice because we have to specify the types of our props and are they required or not..etc
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
This thread hasn’t had any activity in 12 hours, so it’s now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/902647189120118794/1011413377064652882