私はreactbootstrapを使用していますが、これを稼働させるためにこのcodepenを作成しようとしましたが、運が悪いわけではありません。その上で何が起こっているか見当もつかない折り畳みパネルを動作させるにはどうすればよいですか?
import { Button } from 'react-bootstrap';
import { Panel } from 'react-bootstrap';
import { Fade} from 'react-bootstrap';
import { Collapse } from 'react-bootstrap';
class App extends React.Component {
constructor() {
super();
this.state = {};
}
render() {
return (
<div>
<Button onClick={()=> this.setState({ open: !this.state.open })}>
click
</Button>
<Collapse in={this.state.open}>
<div>
<Well>
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.
</Well>
</div>
</Collapse>
</div>
);
}
};
これは、コンソールにエラーがないcodepen です:これは近い開き、ことになっているパネルです。
デモは動作しませんか? –
@bierhier申し訳ありませんが、間違ったデモURLが追加されました。更新されたことは今 –
あなたはそれがパネルの下にあるプッシュダウンされませんどのようにコンテンツを確実にするために知っているのですか? –