![]() Why to use component VS What is the componentĬomponents hides complexity and the realization to make you deal with them as easy as possible Example const handleChange = (v: number) => console.log(v) ![]() Create one component and use it across all over the application. Feel free to make them as small as you feel comfortable Why to use the components ReusingĬomponents are very useful for re-using logic or styles. ![]() It's always much easier to merge components rather than split. Complex stuff you want to hide from yourself.Is a function or class that accepts props (input) and returns JSX First good candidates are For Beginners L2 - What is React Component React For Beginners by Itera Key PointsĪn independent unit of code that encapsulate single, logical functionality From React prospective component
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |