-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Thanh Tùng #1
Comments
Cái này thì dễ ấy mà. Cách 1: chèn file CSS vào index.html, bạn có thể dùng cdn của bootstrap.<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/> Cách 2 chèn trực tiếp bootstrap sass vào file bundle.jsVới cách này thì bạn sẽ cài đặt bootstrap-sass từ npm import 'bootstrap-sass/assets/stylesheets/_bootstrap.scss' Lúc này thì css sẽ được nén vào file bundle.js Example codeimport React from 'react';
import {Grid, Col, FormControl} from 'react-bootstrap';
export default class TestPage extends React.Component{
render(){
<Grid>
<Col md={6} mdOffset={3}>
<FormControl placeholder="Test..."/>
</Col>
</Grid>
}
} |
@namthang đã update react bootstrap |
Hi Thanh Tùng, bạn có thể thêm react bootstrap vào project được không? Cảm ơn nhiều
The text was updated successfully, but these errors were encountered: