Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
In this video, we'll customize the project using React-Bootstrap, a framework for integrating Bootstrap with React apps.
UPDATE: In the latest version of React Bootstrap the Grid
component was renamed to Container
and the Jumbotron
has been discontinued. Instead of these components you can use the following replacements
Change the import in your App.js
file to be:
import { Container, Carousel } from 'react-bootstrap';
Then use the Container
component instead of Grid
, and Carousel
instead of Jumbotron
:
<Carousel>
<Container>
<h1>Search App</h1>
<p>This is a simple search app</p>
</Container>
</Carousel>
SearchForm.js
<Form inline>
<FormGroup controlId="formInlineEmail">
<FormControl type="search" placeholder="enter something..." />
</FormGroup>
{' '}
<Button type="submit">
search
</Button>
</Form>
In the Results
component, you will need to import Container
instead of Grid
:
import {
Container,
ListGroup,
ListGroupItem
} from 'react-bootstrap';
<Container>
<h2>Results List</h2>
<ListGroup>
<ListGroupItem href="#" active>Link 1</ListGroupItem>
<ListGroupItem href="#">Link 2</ListGroupItem>
<ListGroupItem href="#" disabled>Link 3</ListGroupItem>
</ListGroup>
</Container>
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Lanre Oreyomi
921 Points1 Answer
-
Unsubscribed User
10,276 Points1 Answer
-
Daniel Cranney
11,609 Points1 Answer
-
Steve Thijssen
2,170 Points1 Answer
-
Brian Lockerbie
Full Stack JavaScript Techdegree Graduate 17,512 Points2 Answers
-
Triston Rausch
2,523 Points1 Answer
-
Greg Witt
27,133 Points1 Answer
-
Ryan Lertola
Full Stack JavaScript Techdegree Graduate 15,992 Points1 Answer
-
yoav green
8,611 Points2 Answers
-
Daniel Benisti
Front End Web Development Techdegree Graduate 22,224 Points2 Answers
-
Peter Stone
Front End Web Development Techdegree Graduate 20,124 Points1 Answer
-
PLUS
saddam lashuel
Courses Plus Student 9,178 Points1 Answer
-
Unsubscribed User
441 Points2 Answers
-
MOD
Jonathan Grieve
Treehouse Moderator 91,254 Points1 Answer
-
carlos .
9,703 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up