diff --git a/_posts/2016-03-07-react-v15-rc1.md b/_posts/2016-03-07-react-v15-rc1.md index 559ea0f1..5fa53e2a 100644 --- a/_posts/2016-03-07-react-v15-rc1.md +++ b/_posts/2016-03-07-react-v15-rc1.md @@ -79,7 +79,7 @@ Each of these changes will continue to work as before with a new warning until t ### New helpful warnings - If you use a minified copy of the _development_ build, React DOM kindly encourages you to use the faster production build instead. -- 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.) +- 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.) - 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. - Elements will now warn when attempting to read `ref` and `key` from the props. - React DOM now attempts to warn for mistyped event handlers on DOM elements (ex: `onclick` which should be `onClick`) diff --git a/_posts/2016-04-07-react-v15.md b/_posts/2016-04-07-react-v15.md index 5b3542b8..5856d2b9 100644 --- a/_posts/2016-04-07-react-v15.md +++ b/_posts/2016-04-07-react-v15.md @@ -143,7 +143,7 @@ Each of these changes will continue to work as before with a new warning until t - 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) -- 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. +- 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) - 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. diff --git a/docs/context.md b/docs/context.md index 5fc92a59..13ee519c 100644 --- a/docs/context.md +++ b/docs/context.md @@ -36,7 +36,7 @@ Suppose you have a structure like: class Button extends React.Component { render() { return ( - ); @@ -72,7 +72,7 @@ import PropTypes from 'prop-types'; class Button extends React.Component { render() { return ( - ); @@ -166,7 +166,7 @@ Stateless functional components are also able to reference `context` if `context import PropTypes from 'prop-types'; const Button = ({children}, context) => - ; diff --git a/docs/reconciliation.md b/docs/reconciliation.md index 19178069..ce0bfb26 100644 --- a/docs/reconciliation.md +++ b/docs/reconciliation.md @@ -58,9 +58,9 @@ By comparing these two elements, React knows to only modify the `className` on t When updating `style`, React also knows to update only the properties that changed. For example: ```xml -
+
-
+
``` When converting between these two elements, React knows to only modify the `color` style, not the `fontWeight`.