Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ocaml.sandbox": {
"kind": "opam",
"switch": "4.06.1"
}
}
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Reason PowerPlug
Reason PowerPlug is a set of reuseable `components` and `functors` for ReasonReact.
This project is inspired by [react-powerplug](https://github.com/renatorib/react-powerplug).

Reason PowerPlug is a set of reuseable `components` and `functors` for
ReasonReact. This project is inspired by
[react-powerplug](https://github.com/renatorib/react-powerplug).

```ocaml
module StringList = ReList.Make(String);
Expand All @@ -28,9 +29,11 @@ module StringList = ReList.Make(String);
}
</StringList>
```

[More Examples](https://github.com/beizhedenglong/reason-powerplug/blob/master/examples/Index.re)

## Installation

`yarn add reason-powerplug` or `npm install reason-powerplug --save`

then add `reason-powerplug` to `bs-dependencies` in `bsconfig.json`.
Expand Down Expand Up @@ -59,8 +62,6 @@ All components and functors base on `Value.Make` Functor.
| <h6>OTHER</h6> | |
| **Interval** | Component | `{ delay }` | `{ stop, start, toggle }` |



### Value

```ocaml
Expand All @@ -81,6 +82,4 @@ module Number =

```



TODO
22 changes: 8 additions & 14 deletions bsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "reason-powerplug",
"reason": {
"react-jsx": 2
"react-jsx": 3
},
"sources": [
{
Expand All @@ -11,26 +11,20 @@
{
"dir": "examples",
"type": "dev"
},
{
"dir": "__tests__",
"type": "dev"
}
],
"package-specs": [
{
"module": "commonjs",
"in-source": false
},
{
"module": "commonjs",
"in-source": true
}
],
"suffix": ".bs.js",
"namespace": true,
"bs-dependencies": [
"reason-react"
],
"bs-dev-dependencies": [
"@glennsl/bs-jest",
"bs-react-test-renderer"
],
"refmt": 3
}
"bs-dependencies": ["reason-react"],
"bs-dev-dependencies": ["@glennsl/bs-jest"]
}
209 changes: 209 additions & 0 deletions examples/Index.bs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading