Skip to content

Commit

Permalink
Update Build.md
Browse files Browse the repository at this point in the history
Make the shims example React 18 compatible.
  • Loading branch information
bep committed Jun 27, 2024
1 parent 7764005 commit 3fdd581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/en/functions/js/Build.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ module.exports = window.ReactDOM;
With the above, these imports should work in both scenarios:

```js
import * as React from 'react'
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import * as ReactDOM from 'react-dom/client';
```

target
Expand Down

0 comments on commit 3fdd581

Please sign in to comment.