TypeScript Types or Interfaces for React component props Ronald Rey on February 03, 2020 Photo by Simone Hutsch on Unsplash When writing React components with TypeScript, you have two options when it comes to typing its props. You can ... Read full post Submit Preview Dismiss Collapse Expand Brian Manchester Brian Manchester Brian Manchester Follow Full stack software engineer Location Fort Collins, Colorado Work Software Developer Joined Nov 21, 2020 • Nov 23 '20 Dropdown menu Copy link Hide Great explanation of the pros and cons of types vs interfaces with props. I've been looking for a clear, helpful take on this, and I've found it here. Collapse Expand James Zhang James Zhang James Zhang Follow Joined May 16, 2017 • Feb 6 '20 Dropdown menu Copy link Hide Great post! Collapse Expand Apolo Pena Apolo Pena Apolo Pena Follow I code, teach yoga and surf. Been writing code since the 80's Location San Francisco Work Software Engineer / Yoga Teacher at Freelance Joined Nov 17, 2019 • May 13 '21 Dropdown menu Copy link Hide Really impressive stuff here. I love the takeways 🚀 Thank you! Collapse Expand Tamas Veres Tamas Veres Tamas Veres Follow Location Budapest, Hungary Joined Sep 29, 2020 • Dec 13 '21 Dropdown menu Copy link Hide so helpful tysm Collapse Expand KwennB KwennB KwennB Follow Learning to grow and know Advocate. Location Abuja Nigeria Joined Apr 29, 2021 • Sep 20 '22 Dropdown menu Copy link Hide Thank you so much Ronald! Collapse Expand Lưu Xuân Trường Lưu Xuân Trường Lưu Xuân Trường Follow Location Vietnam Work Senior Software Engineer at My home Joined Sep 23, 2019 • Oct 7 '22 Dropdown menu Copy link Hide Awesome, Thank you very much Collapse Expand Artem Artem Artem Follow 0_0 Work Maker Joined Apr 6, 2019 • Feb 1 '23 Dropdown menu Copy link Hide Very good post, it will help me explain to my mentee what to use better, type or interface 😅. Thank you! Collapse Expand Govind Prasad Gupta Govind Prasad Gupta Govind Prasad Gupta Follow Full Stack Web Developer React Education MCA + MTech(IT) Work Sr. JavaScript Developer Joined Mar 15, 2023 • Mar 28 '23 Dropdown menu Copy link Hide I think type alias is better and more clear Collapse Expand Pat Needham Pat Needham Pat Needham Follow Senior Software Engineer generalist began coding in 2015 mostly in ramping up early stage projects so far Location Boston, MA Education Bentley U, General Assembly (Web Dev Immersive) Work Senior Software Engineer Joined Sep 3, 2020 • Aug 22 '23 Dropdown menu Copy link Hide Just came across this while considering this topic for a personal project. This was a fantastic rundown. Thank you! Collapse Expand wuwenxian wuwenxian wuwenxian Follow Joined Apr 16, 2020 • Apr 16 '20 Dropdown menu Copy link Hide WoW! Thanks! Collapse Expand Iyanda Segun Iyanda Segun Iyanda Segun Follow Software Developer in AIICO Capital Limited with a passion in agile development and DevOp. Location Lagos, Nigeria Work Software Developer at AIICO Capital Limited Joined Jun 5, 2020 • Jun 5 '20 Dropdown menu Copy link Hide Very Insightful.....Thanks Code of Conduct • Report abuse
Great explanation of the pros and cons of types vs interfaces with props. I've been looking for a clear, helpful take on this, and I've found it here.
Great post!
Really impressive stuff here. I love the takeways 🚀 Thank you!
so helpful tysm
Thank you so much Ronald!
Awesome, Thank you very much
Very good post, it will help me explain to my mentee what to use better, type or interface 😅.
Thank you!
I think type alias is better and more clear
Just came across this while considering this topic for a personal project. This was a fantastic rundown. Thank you!
WoW! Thanks!
Very Insightful.....Thanks