ReactJS Reactstrap Badges Component Last Updated : 22 Jul, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report Reactstrap is a bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component. In this article we will know how to use Badges Component in Reactstrap. Badges are used for creating labels. Badges scale to match the size of the immediate parent element by using relative font sizing. Syntax: <badge>Content</badge> 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 module using the following command: npm install reactstrap bootstrap Project Structure: It will look like the following. Step to Run Application: Run the application from the root directory of the project, using the following command. npm start Example 1: This is the basic example that shows how to use Badge component. App.js import React from 'react'; import { Badge } from 'reactstrap'; const Example = (props) => { return ( <div> <h1>GeeksforGeeks <Badge color="secondary">10</Badge></h1> </div> ); } export default Example; Output: Example 2: In this example, we will make pill type badges. App.js import React from 'react'; import { Badge } from 'reactstrap'; const Example = (props) => { return ( <div> <h1>GeeksforGeeks <Badge color="secondary" pill>10</Badge></h1> </div> ); } export default Example; Output: Example 3: In this example, we are using badge which shows on hovering effect. App.js JavaScript import React from 'react'; import { Badge, Button } from 'reactstrap'; const gfg = (props) => { return ( <div> <br/> <Button color="primary" outline> GeeksforGeek <Badge color="secondary" pill>reactstrap</Badge> </Button> </div> ); }; export default gfg; Output: Reference: https://reactstrap.github.io/components/badge/ Comment More infoAdvertise with us Next Article ReactJS Reactstrap Alert Component T taran910 Follow Improve Article Tags : Web Technologies ReactJS Reactstrap Similar Reads ReactJS Reactstrap Card Component Reactstrap: Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. The Card components allow the user to display content. We can use the following approach in ReactJS to use the ReactJS Reactst 5 min read ReactJS Reactstrap Alert Component Reactstrap: Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. The alert Component is used for urgent interruptions, requiring acknowledgment that informs the user about a situation. We can 2 min read ReactJS Reactstrap Button Component Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. The Button component allows the user to take action, and make choices, with a single tap. We can use the following approach in ReactJS to 3 min read ReactJS Reactstrap Nav Component Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. The Nav component allows the user to provide a list of various forms of navigation menus. We can use the following approach in ReactJS to 3 min read ReactJS Reactstrap Tab Component Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. The Tab component allows the user to switch between components present in given different tabs. We can use the following approach in React 3 min read React Rebass Badge Component React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Badge Component in React rebass. Badge is an important component that is required in each development. So to create a Badge component we can import the Rebass Badge component.The b 1 min read Like