Approach to add theme using Bootstrap
- The
Home.js
file contains a React functional component namedHome
. - The component renders a heading welcoming users to w3wiki and encouraging them to learn.
- To center the image, the component uses the
Row
component from the ‘react-bootstrap’ library with the class “justify-content-md-center.” - The image, sourced from the w3wiki website, is displayed as a rounded circle using the
Image
component from ‘react-bootstrap’ with the attributessrc
,roundedCircle
, andfluid
.
How to add theme to your webpage using Bootswatch in React JS project ?
Bootswatch is an open-source project, that provides several free themes for Bootstrap that a web developer can use. It helps the developer to get proper UI without spending hours and energy on styling different elements.