React-Bootstrap Jumbotron Component Last Updated : 07 Mar, 2024 Comments Improve Suggest changes Like Article Like Report React-Bootstrap is a front-end framework that was designed keeping react in mind. Bootstrap was re-built and revamped for React, hence it is known as React-Bootstrap. NOTE: AS OF BOOTSTRAP 5.X, JUMBOTRONS ARE NO LONGER SUPPORTED Jumbotron is mainly used to display the core and main content of the website. Jumbotron props: as: It can be used as a custom element type for this component.fluid: This property is used to make the jumbotron full width and without rounded corners.bsPrefix: It is an escape hatch for working with strongly customized bootstrap css.Creating React Application And Installing Module: Step 1: Create a React application using the following command: npx create-react-app foldername Step 2: After creating your project folder i.e. foldername, move to it using the following command: cd foldername Step 3: After creating the ReactJS application, Install the required modules using the following command: npm install react-bootstrap bootstrap Step 4: Add the below line in index.js file: import 'bootstrap/dist/css/bootstrap.css'; Project Structure: It will look like the following. Example: Now write down the following code in the App.js file. Here, App is our default component where we have written our code. App.js import Jumbotron from 'react-bootstrap/Jumbotron'; import Button from 'react-bootstrap/Button'; import Container from 'react-bootstrap/Container' import React from 'react'; export default function JumbotronExample() { return ( <> <Jumbotron> <h1>Regular, Jumbotron!</h1> <p> This is a simple Jumbotron example. </p> <p> <Button variant="primary"> Primary Button </Button> </p> </Jumbotron> <br/> <Jumbotron fluid> <Container> <h1>Fluid jumbotron !</h1> <p> This is a modified fluid jumbotron which stretches the whole horizontal space. </p> <Button variant="primary"> Primary Button </Button> </Container> </Jumbotron> </> ); } Step to Run Application: Run the application using the following command from the root directory of the project: npm startOutput: Now open your browser and go to http://localhost:3000/, you will see the following output. Comment More infoAdvertise with us Next Article React-Bootstrap Jumbotron Component B bunnyram19 Follow Improve Article Tags : Web Technologies ReactJS React-Bootstrap Similar Reads React-Bootstrap Modal Component React-Bootstrap is a front-end framework that was designed keeping react in mind. Modal Component provides a way to add dialogs to our website for user notifications, displaying information, or to display completely custom information to the user. We can use the following approach in ReactJS to use 5 min read React-Bootstrap InputGroup Component React-Bootstrap is a front-end framework that was designed keeping react in mind. InputGroup Component provides a way to put one add-on or button on either side or both sides of an input. We can use the following approach in ReactJS to use the react-bootstrap InputGroup Component. InputGroup Props: 2 min read React-Bootstrap NavBar Component React-Bootstrap is a front-end framework that was designed keeping react in mind. NavBar Component is a navigation header that is responsive and powerful. It supports navigation, branding, and many more other related features. We can use the following approach in ReactJS to use the react-bootstrap N 3 min read React-Bootstrap Figures Component React-Bootstrap is a front-end framework that was designed keeping react in mind. Figure Component provides a way to display a piece of content along with our image, for example, if we want to display an image with an optional caption. We can use the following approach in ReactJS to use the react-bo 2 min read React-Bootstrap Media Component React-Bootstrap is a front-end framework that was designed keeping react in mind. Media Component provides a way to hold images and text as it is a container designed for that purpose only. We can use the following approach in ReactJS to use the react-bootstrap Media Component. Media Props: as: It c 2 min read Like