@samitouri / QOS-React / commits / f9bfd08a02

Markdown fixs on "DOM Attributes in React 16" post (#10816)

Joe Critchley committed Sep 25, 2017 at 17:57 UTC f9bfd08a02280902a65a6672bc9a1ed32afd3f74
1 file changed +3 -3
docs/_posts/2017-09-08-dom-attributes-in-react-16.md
+3 -3
@@ -12,7 +12,7 @@ In the past, React used to ignore unknown DOM attributes. If you wrote JSX with
12
13 would render an empty div to the DOM with React 15:
14
15 -````js
15 +```js
16 // React 15 output:
17 <div />
18 ```
@@ -105,7 +105,7 @@ We've made a few other changes to make the behavior more predictable and help en
105 Below is a detailed list of them.
106
107 * **Unknown attributes with string, number, and object values:**
108 -
108 +
109 ```js
110 <div mycustomattribute="value" />
111 <div mycustomattribute={42} />
@@ -118,7 +118,7 @@ Below is a detailed list of them.
118 *Note: attributes starting with `on` are not passed through as an exception because this could become a potential security hole.*
119
120 * **Known attributes with a different canonical React name:**
121 -
121 +
122 ```js
123 <div tabindex="-1" />
124 <div class="hi" />