Import bootstrap but only into one component

后端 未结 1 384
遥遥无期
遥遥无期 2020-12-19 08:16

I have a React web site using a local scss compiled to css file. But now I want in one and only one of the components to use Bootstrap.

I\'ve followed https://reacts

相关标签:
1条回答
  • 2020-12-19 09:05

    You could just customize bootstrap to your needs?

    You have that option in the bootstrap web page.. Just select the components you need to apply to the component you need.

    https://getbootstrap.com/docs/3.3/customize/

    I found this post too, which Im not quite sure if it is the same problem as yours but is quite similar:

    How to make React CSS import component-scoped?

    Another similar post:

    Limit the scope of bootstrap styles

    You might want to check it out.

    0 讨论(0)
提交回复
热议问题