react/packages/react-flight-dom-webpack
Sebastian Markbåge dc7eedae3c
Encode server rendered host components as array tuples (#18273)
This replaces the HTML renderer with instead resolving host elements into
arrays tagged with the react.element symbol. These turn into proper
React Elements on the client.

The symbol is encoded as the magical value "$". This has security implications
so this special value needs to remain escaped for other strings.

We could just encode the element as {$$typeof: "$", key: key props: props}
but that's a lot more bytes. So instead I encode it as:
["$", key, props] and then convert it back.

It would be nicer if React's reconciler could just accept these tuples.
2020-03-11 09:48:02 -07:00
..
npm [Flight] Move Flight DOM to a Webpack Specific Package (#17372) 2019-11-15 11:46:07 -08:00
src Encode server rendered host components as array tuples (#18273) 2020-03-11 09:48:02 -07:00
README.md [Flight] Move Flight DOM to a Webpack Specific Package (#17372) 2019-11-15 11:46:07 -08:00
index.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00
package.json [Flight] Move Flight DOM to a Webpack Specific Package (#17372) 2019-11-15 11:46:07 -08:00
server.browser.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00
server.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00
server.node.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00

README.md

react-flight-dom-webpack

Experimental React Flight bindings for DOM using Webpack.

Use it at your own risk.