Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Extract render_to_static_markup & render_to_string to React::Server module #186

@zetachang

Description

@zetachang

Since react v0.14, react-dom is extracted out as separated package. [1]

And with the latest v15.4.0 released, ReactDOMServer now shipped with its own copy of React reconciler as the release note stated [2]

Another thing to watch out for is that React DOM Server is now about the same size as React DOM since it contains its own copy of the React reconciler. We don't recommend using React DOM Server on the client in most cases.

I think it's time to extract out the ReactDOMServer API. React::Server will contains the original React.render_to_string & React.render_to_static_markup. Things to watch out:

[1] https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html
[2] https://facebook.github.io/react/blog/2016/11/16/react-v15.4.0.html

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions