mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
39dbb14da3
* Move Flight DOM to Webpack Specific Packagee We'll have Webpack specific coupling so we need to ensure that it can be versioned separately from various Webpack versions. We'll also have builds for other bundlers in the future. * Move to peerDep * Move DOM Flight Tests * Merge ReactFlightIntegration into ReactFlightDOM This was an integration test. We can add to it. * Fix fixture paths
8 lines
298 B
JavaScript
8 lines
298 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import ReactFlightDOMClient from 'react-flight-dom-webpack';
|
|
import App from './App';
|
|
|
|
let data = ReactFlightDOMClient.readFromFetch(fetch('http://localhost:3001'));
|
|
ReactDOM.render(<App data={data} />, document.getElementById('root'));
|