Normally in vanilla JavaScript, when you want to re-use some code, you write it as a function. In React however, you write your code as a component. In this post, I will show how we can create custom re-usable React components, and share them between apps.
Full article