mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 16:14:59 +00:00
Update Build.md
Make the shims example React 18 compatible.
This commit is contained in:
1 parent
7764005c31
commit
3fdd5819b5
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user