mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
removed extra curly bracket (#885)
This commit is contained in:
@@ -43,7 +43,7 @@ If you use ES6 promises, you may need to wrap your promise in order to make it c
|
||||
|
||||
```js
|
||||
const cancelablePromise = makeCancelable(
|
||||
new Promise(r => component.setState({...}}))
|
||||
new Promise(r => component.setState({...}))
|
||||
);
|
||||
|
||||
cancelablePromise
|
||||
|
||||
Reference in New Issue
Block a user