Understanding Functional Components
▻https://hackernoon.com/understanding-functional-components-895321b1af84?source=rss----3a8144eab
React is all about keeping your front-end code modular and reusable. Components play a crucial role in making #react modular. Components are the building blocks of React. Using the right kind of components can make sure that your front end code is reusable and scalable.There are two types of components in react functional and class based components. Using the right type of component will make a lot of difference to your codes’ reusability and performance.In this article we will explore what are the differences between functional components and class based components, advantages and disadvantages of these two types of components and thumb rules to decide when to use what.What are functional components?Let us say we need to create a component for printing the welcome message. Let us create (...)
#understanding-components #javascript #software-development #functional-component