r/javascript • • Jun 12 '22

How to use bootstrap in React

https://www.devtip.co/how-to-use-bootstrap-in-react/
0 Upvotes

29 comments sorted by

View all comments

Show parent comments

3

u/b0x3r_ Jun 12 '22

Can you explain why not? I’m just learning web dev and it’s not obvious to me why you wouldn’t

4

u/SuperSubwoofer Jun 13 '22

You can obviously use it, and there’s nothing inherently wrong with it. HOWEVER, as a Front End Dev, using Normalize as a basis and using a mix of Flexbox and CSS grid gives you much granular control.

You can also combine that with CSS variables or a pre-processor like LESS or SASS. My biggest issue with it is once you get into custom client sites, it becomes more of a pain to use then to use your own stylesheets and boilerplates.

3

u/b0x3r_ Jun 13 '22

Thanks! Is it common to use something like sass if you are using a framework like react?

2

u/SuperSubwoofer Jun 13 '22

I’m a WordPress dev, so I use React in a bit of a different capacity, but using a pre processor is agnostic to the framework you are using in my experience. I highly recommend SASS or LESS. It’s more readable and easy to set variables with.

2

u/b0x3r_ Jun 13 '22

I appreciate the advice, there’s so many frameworks out there that’s it difficult as a newcomer to sort out what modern devs are using.

1

u/SuperSubwoofer Jun 13 '22

If you’re completely new, I would recommend vanilla JS, html, and CSS to start then branch into React and pre-processors. You’ll have a solid foundation and learning new frameworks will be much easier.