mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 15:58:53 +00:00
Update Build.md
Make the shims example React 18 compatible.
This commit is contained in:
committed by
GitHub
parent
7764005c31
commit
3fdd5819b5
@@ -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