Skip to content

Commit c8b778b

Browse files
authored
Fix typo: supportsMicrotask -> supportsMicrotasks (#25142)
1 parent d0f3966 commit c8b778b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-reconciler/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ You can proxy this to `clearTimeout` or its equivalent in your environment.
199199

200200
This is a property (not a function) that should be set to something that can never be a valid timeout ID. For example, you can set it to `-1`.
201201

202-
#### `supportsMicrotask`
202+
#### `supportsMicrotasks`
203203

204204
Set this to true to indicate that your renderer supports `scheduleMicrotask`. We use microtasks as part of our discrete event implementation in React DOM. If you're not sure if your renderer should support this, you probably should. The option to not implement `scheduleMicrotask` exists so that platforms with more control over user events, like React Native, can choose to use a different mechanism.
205205
#### `scheduleMicrotask(fn)`

0 commit comments

Comments
 (0)