var React = require('react')
var ReactDom = require('react-dom')
var Textinput = React.createClass({
getInitialState : function () {
return {
value : 'Heading\n=======\n\nSub-heading\n-----------\n \n### Another deeper heading\n \nParagraphs are separated\nby a blank line.\n\nLeave 2 spaces at the end of a line to do a \nline break\n\nText attributes *italic*, **bold**, \n`monospace`, ~~strikethrough~~ .\n\nShopping list:\n\n * apples\n * oranges\n * pears\n\nNumbered list:\n\n 1. apples\n 2. oranges\n 3. pears\n\nThe rain---not the reign---in\nSpain.\n\n *[Herman Fassett](http://freecodecamp.com/hermanfassett)*'
}
},
render : function () {
return (
<div className="row" style={{marginTop: 30 + "px"}}>
<div className="col-sm-5 col-sm-offset-1">
<textarea className="form-control" rows="26" style= {{resize: "none"}} defaultValue={this.state.value}></textarea>
</div>
</div>
)
}
})
ReactDom.render(<Textinput/>,document.getElementById("container"))
我想让我的组件使用bootstrap样式。但是应该怎么引入呢?
需要在webpack中配置什么东西吗?或者还是说要npm install bootstrap?
谢邀~
传送门:http://v3.bootcss.com/getting...