- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
Bootstrap is most popular CSS Framework for developing responsive site without write long code of css. There are lots of version has been released. Now latest version of bootstrap 5. This post for how to use bootstrap in react application.
In react , we know use the className instead of class. but , In bootstrap site code has class so in react error will occure. so we need to change lot of thing in code. so we have option for use bootstrap in react js without change code. it has already changed code for react developer.
Click below link👇
https://react-bootstrap.github.io/
Example :
Difference between original bootstrap code and react bootstrap code.
Alert code for original bootstrap version
<div class="alert alert-primary" role="alert">
A simple primary alert—check it out!
</div>
<div class="alert alert-secondary" role="alert">
A simple secondary alert—check it out!
</div>
<div class="alert alert-success" role="alert">
A simple success alert—check it out!
</div>
<div class="alert alert-danger" role="alert">
A simple danger alert—check it out!
</div>
<div class="alert alert-warning" role="alert">
A simple warning alert—check it out!
</div>
<div class="alert alert-info" role="alert">
A simple info alert—check it out!
</div>
<div class="alert alert-light" role="alert">
A simple light alert—check it out!
</div>
<div class="alert alert-dark" role="alert">
A simple dark alert—check it out!
</div>
Alert code for react bootstrap :
[
'primary',
'secondary',
'success',
'danger',
'warning',
'info',
'light',
'dark',
].map((variant, idx) => (
<Alert key={idx} variant={variant}>
This is a {variant} alert—check it out!
</Alert>
));
This would help to make easy coding for you
Comments
I found this one pretty fascinating and it should go into my collection. Very good work! I am Impressed.
ReplyDeleteHire Dedicated ReactJs Developers
thanks for sharing this useful information
ReplyDeleteBootstrap Grid System Kya Hota Hai ?
Bootstrap Progress Bar Kaise Banaye?
Grab the astounding Azure Training in Chennai along with the best DevOps Training and Java training from Infycle Technologies, the best software training institute in Chennai. Call 7504633633 to get the best placement guidance along with the software training for having a lucrative career in the software industry.
ReplyDeleteThis is a great inspiring article. I am pretty much pleased with your good work. You put really very helpful information. Keep it up.
ReplyDeleteProduct Engineering Services
App Modernization Services
Enterprise App Development Services
Mobile App Development Services
Low Code Development Services
Mendix Development Services
Cloud Migration Services
Digital Assurance Services
Software testing services