Skip to content

Commit 0194f2d

Browse files
committed
Updates for React.Basic 15
1 parent d79a9b8 commit 0194f2d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1770
-1786
lines changed

.circleci/config.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
dist: trusty
2+
sudo: required
3+
language: node_js
4+
node_js:
5+
- node
6+
- "lts/*"
7+
8+
cache: npm
9+
10+
install:
11+
- npm ci
12+
- npx bower i
13+
14+
script:
15+
- npx pulp build

Makefile

Lines changed: 0 additions & 27 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# react-basic-hooks [![CircleCI](https://circleci.com/gh/spicydonuts/purescript-react-basic-hooks.svg?style=svg)](https://circleci.com/gh/spicydonuts/purescript-react-basic-hooks)
1+
# react-basic-hooks [![Build Status](https://travis-ci.com/spicydonuts/purescript-react-basic-hooks.svg?branch=master)](https://travis-ci.com/spicydonuts/purescript-react-basic-hooks)
22

3-
`react-basic-hooks` adds React hook support to [react-basic](https://github.com/lumihq/purescript-react-basic)!
3+
`react-basic-hooks` is a React hook API for [react-basic](https://github.com/lumihq/purescript-react-basic)!
44

55
_Note:_ This API relies on recent React versions (>= 16.8.0).
66
For more info on hooks, see [React's documentation](https://reactjs.org/docs/hooks-intro.html).
@@ -22,11 +22,11 @@ mkCounter = do
2222
2323
pure
2424
$ R.button
25-
{ onClick: handler_ do
26-
setCounter (_ + 1)
27-
, children:
28-
[ R.text $ "Increment: " <> show counter ]
29-
}
25+
{ onClick: handler_ do
26+
setCounter (_ + 1)
27+
, children:
28+
[ R.text $ "Increment: " <> show counter ]
29+
}
3030
```
3131

3232
More examples:

bower.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,20 @@
1313
},
1414
"dependencies": {
1515
"purescript-prelude": "^4.1.0",
16-
"purescript-console": "^4.2.0",
17-
"purescript-effect": "^2.0.0",
18-
"purescript-react-basic": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
19-
"purescript-indexed-monad": "^1.0.0",
16+
"purescript-effect": "^2.0.1",
17+
"purescript-aff": "^5.1.2",
18+
"purescript-newtype": "^3.0.0",
19+
"purescript-maybe": "^4.0.1",
20+
"purescript-numbers": "^7.0.0",
21+
"purescript-either": "^4.1.1",
22+
"purescript-type-equality": "^3.0.0",
23+
"purescript-datetime": "^4.1.1",
24+
"purescript-web-html": "^2.3.0",
25+
"purescript-aff-promise": "^2.1.0",
2026
"purescript-unsafe-reference": "^3.0.1",
21-
"purescript-aff": "^5.1.1",
22-
"purescript-aff-promise": "^2.1.0"
27+
"purescript-indexed-monad": "^1.2.0",
28+
"purescript-react-basic": "next",
29+
"purescript-unsafe-coerce": "^4.0.0"
2330
},
2431
"devDependencies": {
2532
"purescript-psci-support": "^4.0.0"

examples/README.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/aff/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/aff/Makefile

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/aff/html/index.html

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/aff/src/Example.purs

Lines changed: 0 additions & 142 deletions
This file was deleted.

examples/aff/src/Main.purs

Lines changed: 0 additions & 21 deletions
This file was deleted.

examples/component/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/component/Makefile

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/component/html/index.html

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/component/src/Example.purs

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)