Modals are a very important, multi-purpose feature of many websites. Their main function is to bring information to the immediate attention of users. They are particularly useful when crucial information is to be passed or an action must be carried out before users gain access to, say, a resource. A common use case of modals is to present an authentication (login or sign-up) form before a user can carry out a particular action. You’ll porbably be required to create a modal component at least once during your journey as a web developer, so this tutorial will show you how to build a re-usable modal component.