Join the Stack Overflow Community
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

Importing a css file in bootstrap react.

For navigation, an additional header.css file will be used. In bootstrap without react I embed the file as follows:

<Nav class="navbar-abc-header navbar-default navbar-fixed-top">

In bootstrap react this entry does not work.

        render ( ) {
            return (
                <Navbar navbar-abc-header fixedTop>
        ...
        );
    }

I can use <Navbar inverse fixedTop> but not my own css file.

As we the css file included right?

share|improve this question
    
IIRC, reactjs uses className="classesgoeshere" – naslund 23 hours ago

You need to use className in reactjs. class in a reserved keyword javascript hence you cannot use the same for defining CSS classes.

<Nav className="navbar-abc-header navbar-default navbar-fixed-top">
share|improve this answer
    
can u please accept the answer? – Harkirat Saluja 22 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.