如何在ReactJs中使用Bootstrap
1个回答
2016-12-13 · 做真实的自己 用良心做教育
千锋教育
千锋教育专注HTML5大前端、JavaEE、Python、人工智能、UI&UE、云计算、全栈软件测试、大数据、物联网+嵌入式、Unity游戏开发、网络安全、互联网营销、Go语言等培训教育。
向TA提问
关注
展开全部
import {Button} from 'react-bootstrap';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
import React from 'react';
import {render} from 'react-dom';
import TableList from './table.js';
class MianBan extends React.Component{
//title
constructor(...args){
super(...args);
this.state = {
open: true
};
}
render() {
return (
<div>
<Button onClick={ ()=> this.setState({opten: !this.state.opten}) }>
click
</Button>
<panel collapsible expanded={this.state.open}>
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid.
Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
</panel>
</div>
);
}
}
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
import React from 'react';
import {render} from 'react-dom';
import TableList from './table.js';
class MianBan extends React.Component{
//title
constructor(...args){
super(...args);
this.state = {
open: true
};
}
render() {
return (
<div>
<Button onClick={ ()=> this.setState({opten: !this.state.opten}) }>
click
</Button>
<panel collapsible expanded={this.state.open}>
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid.
Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
</panel>
</div>
);
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询