简体   繁体   中英

react-bootstrap component documentation

I'm looking for the documentation of react-bootstrap components. I see that on the react-boostrap site it is available the code to create the components, but what about how to use them, or the parameters they accept?

(for example, if I have a Tab, how can I intercept its onclick? or, does it have an onclick event?)

If you want to add an onClick event, in most cases you can just define it on the element:

<Button bsStyle="primary" onClick={alert("you clicked me")}>Default button</Button>

There is also documentation here , for how to intercept the tab onSelect event using the eventKey method.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM