8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5c46c2 commit 8c60a2eCopy full SHA for 8c60a2e
examples/with-amp/pages/_document.js
@@ -1,16 +1,4 @@
1
import Document, { Head } from 'next/document'
2
-import { DOMProperty } from 'react-dom/lib/Rea 8A3F ctInjection'
3
-import { properties as DOMProperties } from 'react-dom/lib/DOMProperty'
4
-
5
-// By default React limit the set of valid DOM elements and attributes
6
-// (https://github.com/facebook/react/issues/140) this config whitelist
7
-// Amp elements/attributes
8
-if (typeof DOMProperties.amp === 'undefined') {
9
- DOMProperty.injectDOMPropertyConfig({
10
- Properties: { amp: DOMProperty.MUST_USE_ATTRIBUTE },
11
- isCustomAttribute: attributeName => attributeName.startsWith('amp-')
12
- })
13
-}
14
15
export default class MyDocument extends Document {
16
render () {
0 commit comments