@samitouri / QOS-React-2 / commits / f2568605a7

chore(docs) Remove extra style tag curly braces (#10973)

Removed an extra quoted set of curly braces..

Dave Garwacke committed Sep 30, 2017 at 11:11 UTC f2568605a7d5c054bf0840245a0e48c78a45f1d3
5 files changed +8 -8
CHANGELOG.md
+1 -1
@@ -469,7 +469,7 @@ Each of these changes will continue to work as before with a new warning until t
469 ### New helpful warnings
470
471 - If you use a minified copy of the _development_ build, React DOM kindly encourages you to use the faster production build instead. ([@sophiebits](https://github.com/sophiebits) in [#5083](https://github.com/facebook/react/pull/5083))
472 -- React DOM: When specifying a unit-less CSS value as a string, a future version will not add `px` automatically. This version now warns in this case (ex: writing `style={{'{{'}}width: '300'}}`. Unitless *number* values like `width: 300` are unchanged. ([@pluma](https://github.com/pluma) in [#5140](https://github.com/facebook/react/pull/5140))
472 +- React DOM: When specifying a unit-less CSS value as a string, a future version will not add `px` automatically. This version now warns in this case (ex: writing `style={{width: '300'}}`. Unitless *number* values like `width: 300` are unchanged. ([@pluma](https://github.com/pluma) in [#5140](https://github.com/facebook/react/pull/5140))
473 - Synthetic Events will now warn when setting and accessing properties (which will not get cleared appropriately), as well as warn on access after an event has been returned to the pool. ([@kentcdodds](https://github.com/kentcdodds) in [#5940](https://github.com/facebook/react/pull/5940) and [@koba04](https://github.com/koba04) in [#5947](https://github.com/facebook/react/pull/5947))
474 - Elements will now warn when attempting to read `ref` and `key` from the props. ([@prometheansacrifice](https://github.com/prometheansacrifice) in [#5744](https://github.com/facebook/react/pull/5744))
475 - React will now warn if you pass a different `props` object to `super()` in the constructor. ([@prometheansacrifice](https://github.com/prometheansacrifice) in [#5346](https://github.com/facebook/react/pull/5346))
docs/_posts/2016-03-07-react-v15-rc1.md
+1 -1
@@ -79,7 +79,7 @@ Each of these changes will continue to work as before with a new warning until t
79 ### New helpful warnings
80
81 - If you use a minified copy of the _development_ build, React DOM kindly encourages you to use the faster production build instead.
82 -- React DOM: When specifying a unit-less CSS value as a string, a future version will not add `px` automatically. This version now warns in this case (ex: writing `style={{'{{'}}width: '300'}}`. (Unitless *number* values like `width: 300` are unchanged.)
82 +- React DOM: When specifying a unit-less CSS value as a string, a future version will not add `px` automatically. This version now warns in this case (ex: writing `style={{width: '300'}}`. (Unitless *number* values like `width: 300` are unchanged.)
83 - Synthetic Events will now warn when setting and accessing properties (which will not get cleared appropriately), as well as warn on access after an event has been returned to the pool.
84 - Elements will now warn when attempting to read `ref` and `key` from the props.
85 - React DOM now attempts to warn for mistyped event handlers on DOM elements (ex: `onclick` which should be `onClick`)
docs/_posts/2016-04-07-react-v15.md
+1 -1
@@ -143,7 +143,7 @@ Each of these changes will continue to work as before with a new warning until t
143 - If you use a minified copy of the _development_ build, React DOM kindly encourages you to use the faster production build instead.
144 <small>[@sophiebits](https://github.com/sophiebits) in [#5083](https://github.com/facebook/react/pull/5083)</small>
145
146 -- React DOM: When specifying a unit-less CSS value as a string, a future version will not add `px` automatically. This version now warns in this case (ex: writing `style={{'{{'}}width: '300'}}`. Unitless *number* values like `width: 300` are unchanged.
146 +- React DOM: When specifying a unit-less CSS value as a string, a future version will not add `px` automatically. This version now warns in this case (ex: writing `style={{width: '300'}}`. Unitless *number* values like `width: 300` are unchanged.
147 <small>[@pluma](https://github.com/pluma) in [#5140](https://github.com/facebook/react/pull/5140)</small>
148
149 - Synthetic Events will now warn when setting and accessing properties (which will not get cleared appropriately), as well as warn on access after an event has been returned to the pool.
docs/docs/context.md
+3 -3
@@ -36,7 +36,7 @@ Suppose you have a structure like:
36 class Button extends React.Component {
37 render() {
38 return (
39 - <button style={{'{{'}}background: this.props.color}}>
39 + <button style={{background: this.props.color}}>
40 {this.props.children}
41 </button>
42 );
@@ -72,7 +72,7 @@ import PropTypes from 'prop-types';
72 class Button extends React.Component {
73 render() {
74 return (
75 - <button style={{'{{'}}background: this.context.color}}>
75 + <button style={{background: this.context.color}}>
76 {this.props.children}
77 </button>
78 );
@@ -166,7 +166,7 @@ Stateless functional components are also able to reference `context` if `context
166 import PropTypes from 'prop-types';
167
168 const Button = ({children}, context) =>
169 - <button style={{'{{'}}background: context.color}}>
169 + <button style={{background: context.color}}>
170 {children}
171 </button>;
172
docs/docs/reconciliation.md
+2 -2
@@ -58,9 +58,9 @@ By comparing these two elements, React knows to only modify the `className` on t
58 When updating `style`, React also knows to update only the properties that changed. For example:
59
60 ```xml
61 -<div style={{'{{'}}color: 'red', fontWeight: 'bold'}} />
61 +<div style={{color: 'red', fontWeight: 'bold'}} />
62
63 -<div style={{'{{'}}color: 'green', fontWeight: 'bold'}} />
63 +<div style={{color: 'green', fontWeight: 'bold'}} />
64 ```
65
66 When converting between these two elements, React knows to only modify the `color` style, not the `fontWeight`.