Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialyoav green
8,611 PointsFailed to compile..
Failed to compile
./src/App.js
Attempted import error: 'Grid' is not exported from 'react-bootstrap'.
import React, { Component } from 'react';
import { Grid, Jumbotron } from 'react-bootstrap';
class App extends Component {
render() {
return (
<div>
<Jumbotron>
<Grid>
<h1>Search App</h1>
<p>This is a simple search app</p>
</Grid>
</Jumbotron>
</div>
);
}
}
export default App;
import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.min.css'; //important to write above
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister();
2 Answers
KRIS NIKOLAISEN
54,971 PointsAccording to this page Grid has been renamed Container
yoav green
8,611 Pointsawwwww thank you so much sir!