Skip to content

Commit

Permalink
Example: return type of didMount is unit (reasonml#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaello committed Feb 21, 2019
1 parent 6666d05 commit 1b21de4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/instance-variables.md
Expand Up @@ -31,8 +31,6 @@ let make = (_children) => {
didMount: ({state}) => {
/* mutate the value here */
state.intervalId := Some(Js.Global.setInterval(/* ... */));
/* no extra state update needed */
ReasonReact.NoUpdate
},
render: /* ... */
};
Expand Down

0 comments on commit 1b21de4

Please sign in to comment.