M
M
Marat Ivanov2019-06-17 15:28:11
JavaScript
Marat Ivanov, 2019-06-17 15:28:11

How to set container fluid in BOOTSTRAP 4 react?

How to set container fluid in BOOTSTRAP 4 react?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-06-17
@mrair

bootstrap:

import React from 'react';

const Example = () => (
  <div className="container-fluid">{/* children */}</div>
);

reactstrap:
import React from 'react';
import { Container } from 'reactstrap';

const Example = () => (
  <Container fluid>{/* children */}</Container>
);

react bootstrap:
import React from 'react';
import Container from 'react-bootstrap/Container';

const Example = () => (
  <Container fluid>{/* children */}</Container>
);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question