Skip to content

Commit 00b9bb9

Browse files
committed
Update instructions to keep types synced
1 parent 6d7e6df commit 00b9bb9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

types/react-dom/experimental.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
* Either the import or the reference only needs to appear once, anywhere in the project.
2525
*/
2626

27-
// See https://github.com/facebook/react/blob/main/packages/react-dom/src/client/ReactDOM.js to see how the exports are declared,
28-
// and https://github.com/facebook/react/blob/main/packages/shared/ReactFeatureFlags.js to verify which APIs are
29-
// flagged experimental or not. Experimental APIs will be tagged with `__EXPERIMENTAL__`.
27+
// See https://github.com/facebook/react/blob/main/packages/react-dom/index.experimental.js to see how the exports are declared,
28+
// but confirm with published source code (e.g. https://unpkg.com/react-dom@experimental) that these exports end up in the published code
3029

3130
import React = require('react');
3231
import ReactDOM = require('./next');

types/react-dom/next.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
* Either the import or the reference only needs to appear once, anywhere in the project.
2424
*/
2525

26-
// See https://github.com/facebook/react/blob/main/packages/react-dom/src/client/ReactDOM.js to see how the exports are declared,
26+
// See https://github.com/facebook/react/blob/main/packages/react-dom/index.js to see how the exports are declared,
27+
// but confirm with published source code (e.g. https://unpkg.com/react-dom@next) that these exports end up in the published code
2728

2829
import React = require('react');
2930
import ReactDOM = require('.');

0 commit comments

Comments
 (0)