diff --git a/CHANGELOG.md b/CHANGELOG.md index bdb5161c..0a20c88d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ + **BREAKING**: Stateless components that use the `@react` macro annotation must extend the `StatelessComponent` class instead of just `Component` [PR #69](https://github.com/shadaj/slinky/pull/69) + **BREAKING**: Callbacks passed to `setState` are now Scala functions, so there is no need to force implicit conversions [PR #71](https://github.com/shadaj/slinky/pull/71) + **BREAKING**: The tag construction flow now requires attributes to come before children. In addition, an empty list of attributes is no longer allowed [PR #73](https://github.com/shadaj/slinky/pull/73) ++ Add remaining methods from ReactDOMServer, including those introduced in React 16 [PR #83](https://github.com/shadaj/slinky/pull/83) + Add support for all `ReactElement` types introduced in React 16, such as numbers and booleans [PR #83](https://github.com/shadaj/slinky/pull/83) + Add support for error boundaries, which were added in React 16 [PR #82](https://github.com/shadaj/slinky/pull/82) + Add a `*` tag for external components that can take any attribute [PR #81](https://github.com/shadaj/slinky/pull/81) diff --git a/web/src/main/scala/me/shadaj/slinky/web/ReactDOM.scala b/web/src/main/scala/me/shadaj/slinky/web/ReactDOM.scala index 4738c42f..fa9c26fb 100644 --- a/web/src/main/scala/me/shadaj/slinky/web/ReactDOM.scala +++ b/web/src/main/scala/me/shadaj/slinky/web/ReactDOM.scala @@ -28,4 +28,8 @@ object ReactDOM extends js.Object { @JSImport("react-dom/server", JSImport.Namespace, "ReactDOMServer") object ReactDOMServer extends js.Object { def renderToString(element: ReactElement): String = js.native + def renderToStaticMarkup(element: ReactElement): String = js.native + + def renderToNodeStream(element: ReactElement): js.Object = js.native + def renderToStaticNodeStream(element: ReactElement): js.Object = js.native }