What are components in react?
Sep 4, 2018 · 1 min read
Components are used for divide UI (i.e JSX) into different files and can be use through import. Components are reusable. The benefit of making a component rather than all your work done in a same file is that it’s easy to understand. If you will see your code later you will easily understand it. And it’s a best practice to make a component of every interface and if you separate it’s CSS file then it’s excellent because all about that component is separate. If you see your code in future you will easily understand it. Components are of two type and it will discuss in next blog………