Skip to content

Commit

Permalink
Add StrictMode
Browse files Browse the repository at this point in the history
Fixes #568
  • Loading branch information
relekang authored and rickyvetter committed May 6, 2020
1 parent c97735a commit b8c28f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/React.re
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ module Fragment = {
external make: component({. "children": element}) = "Fragment";
};

module StrictMode = {
[@bs.obj]
external makeProps:
(~children: element, ~key: 'key=?, unit) => {. "children": element};
[@bs.module "react"]
external make: component({. "children": element}) = "StrictMode";
};

module Suspense = {
[@bs.obj]
external makeProps:
Expand Down

0 comments on commit b8c28f4

Please sign in to comment.