Skip to content

Commit a148686

Browse files
committed
Add warning to docs
1 parent a6a710e commit a148686

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

generated-docs/React/Basic/Events.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ input { onChange: handler (preventDefault >>> targetValue)
3535
}
3636
```
3737

38+
_Note: Misusing the `EventFn` *constructor* is UNSAFE and should be avoided -- use the helper functions specific to your platform (such as `React.Basic.DOM.Events`)_
39+
3840
##### Instances
3941
``` purescript
4042
Semigroupoid EventFn

src/React/Basic/Events.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ foreign import data SyntheticEvent :: Type
3434
-- | \value -> setState \_ -> { value }
3535
-- | }
3636
-- | ```
37+
-- |
38+
-- | _Note: Misusing the `EventFn` *constructor* is UNSAFE and should be avoided -- use the helper functions specific to your platform (such as `React.Basic.DOM.Events`)_
3739
newtype EventFn a b = EventFn (a -> b)
3840

3941
derive newtype instance semigroupoidBuilder :: Semigroupoid EventFn

0 commit comments

Comments
 (0)