3
我在收到react-bootstrap在react-redux應用程序中執行它的操作時遇到問題。我有一個看起來像這樣的組件:React引導與Redux
import React, { Component, PropTypes } from 'react';
import { Button } from 'react-bootstrap';
class Foo extends Component {
constructor(props, actions) {
super(props, actions);
}
render() {
const { people } = this.props;
return(
<ul>
{people.map(person => {
return(
<div key={person}>
<li>{person.name}</li>
<Button bsStyle="success" onClick={() => removePerson(person) }>Remove</Button>
</div>
)
})}
</ul>
)
}
}
export default Foo;
但是反應的自舉並不造型元素。有什麼想法,我失蹤了?謝謝!
在Getting Started部分的開頭部分有這樣一段不太明顯的註釋:'首先將Bootstrap CSS添加到您的項目;如果你還沒有這樣做,請在這裏檢查。我被抓到了,你? –
是的,這是問題!謝謝。 – russdub
作出了回答,以便您可以關閉它:) –