docs: site wrap with strict mode (#34895)

* docs: site wrap with strict mode

* chore: bump bisheng
This commit is contained in:
二货机器人 2022-04-07 14:10:49 +08:00 committed by GitHub
parent a67c0d28d3
commit 3de8030e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -188,7 +188,7 @@
"argos-cli": "^0.3.0",
"array-move": "^4.0.0",
"babel-plugin-add-react-displayname": "^0.0.5",
"bisheng": "^3.0.0",
"bisheng": "^3.2.0",
"bisheng-plugin-description": "^0.1.4",
"bisheng-plugin-react": "^1.2.0",
"bisheng-plugin-toc": "^0.4.4",

View File

@ -352,7 +352,9 @@ ReactDOM.render(<Demo />, document.getElementById('container'));
let codeBox = (
<section className={codeBoxClass} id={meta.id}>
<section className="code-box-demo">
<ErrorBoundary>{this.liveDemo}</ErrorBoundary>
<ErrorBoundary>
<React.StrictMode>{this.liveDemo}</React.StrictMode>
</ErrorBoundary>
{style ? <style dangerouslySetInnerHTML={{ __html: style }} /> : null}
</section>
<section className="code-box-meta markdown">