Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahrefs/bs-reactstrap
https://github.com/ahrefs/bs-reactstrap
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ahrefs/bs-reactstrap
- Owner: ahrefs
- Archived: true
- Created: 2018-03-18T17:43:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T15:06:40.000Z (over 1 year ago)
- Last Synced: 2024-09-26T00:06:13.206Z (4 months ago)
- Language: Reason
- Size: 139 KB
- Stars: 18
- Watchers: 30
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bs-reactstrap
> **Warning**
> This repository is no longer maintained, as we don't use it anymore at Ahrefs.These are [Bucklescript](https://bucklescript.github.io/) bindings for [Reactstrap](https://reactstrap.github.io/).
Currently they are autogenerated based on propTypes. Everything complex (basically not `string` or `bool`) is just type variable.
🚧 It is not completed, we are adding bindings as we go. Doesn't follow semver at this point. 🚧# Install, [npm](https://www.npmjs.com/package/@ahrefs/bs-reactstrap)
```
yarn add @ahrefs/bs-reactstrap
```# Setup
Add `@ahrefs/bs-reactstrap` to `bs-dependencies` in your `bsconfig.json`!
```js
{
/* ... */
"bs-dependencies": [
"@ahrefs/bs-reactstrap"
],
/* ... */
}
```# Usage Example
```reason
open BsReactstrap;let component = ReasonReact.statelessComponent("SomeComponent");
let make = (~onClick, _children) => {
...component,render: _self => {
"Hello" ;
},
};
```Check [Reactstrap documentation](https://reactstrap.github.io/components/) for available props.