-
-
Notifications
You must be signed in to change notification settings - Fork 232
Closed
Description
This is going to be non-trivial. Hopefully not a big deal either.
For those salivating and pining in anticipating for this, I hope to get it done this month but no promises (I have a family to support).
Also it will come out in v1.2.0. Before then there'll be a minor release still on React 15.
Edit: Not committing to a timeline but these are the changes:
Changes & Progress
- New render return types
- arrays
- strings
- numbers
- portals
- null (how does sjr handle this? should we bother supporting it anyway?) -- don't support; THIS. IS. SCAALAAA!
-
EmptyVdom
(Scala version of above) - boolean (to support JS syntax bool && expr - should we support this? it's ≈ null, even when true) -- don't support; THIS. IS. SCAALAAA!
-
Option[_]
(Scala version of above) - fragments
- Fragments
- Portals
-
ReactDOM.createPortal
- React.Children support for portals (React.Children support for portals facebook/react#11373)
-
- "Error boundaries"
-
componentDidCatch
-
- React Addons have been discontinued
-
react-addons-test-utils
is nowreact-dom/test-utils
-
perf
doesn't work with 16 - no replacement yet -
react-addons-css-transition-group
is nowreact-transition-group
, a separate lib
-
- Deprecated now removed
-
createClass
-
- VDOM
- Allow on as a custom attribute for AMP. Allow custom attribute named
on
to be passed on to elements facebook/react#11153 - Remove VdomElement? -- Nope, still needed by
ReactDOM
- Allow on as a custom attribute for AMP. Allow custom attribute named
- Other
- New rules for Keys
- New rules for Refs
-
getDOMNode
should now returnElement | Text
instead of justElement
- Refresh vdom builder prod-mode logic
- Refresh component builder logic
- componentDidUpdate lifecycle no longer receives prevContext param. See Pass prevContext param to componentDidUpdate facebook/react#8631 (Don't think sjr is affected)
- Remember to test module paths with sjs-bundler -- wasted enough time trying to get fragile bundler to even run my tests
- Depends on requestAnimationFrame (even in test environments). Might need shim:
import 'raf/polyfill'
Externalised
- Support new setState shapes #448 - Calling
setState
with null no longer triggers an update. - Update doc for React 16 #449 - Update docs
dkowis, tarsa, He-Pin, stevenjob, ekermas and 5 morengbinh, nghuuphuoc, malaman, dbolotin, matthughes and 1 more