pgadmin4/web/pgadmin/static/vendor/react-dom
George Gelashvili 5cfa22cf23 Fix React to work with QtWebKit
We learned that the underlying issue was related to react-dom's SyntheticEvent.augmentClass function being undefined.

This seems to be caused by attempted property assignment after the SyntheticEvent had been replaced by a Proxy of itself. This works fine in Chromium et al, but QtWebKit doesn't deal with Proxy Event objects well.
Moving the augmentClass definition and assignment up above the Proxy stuff resolves the issue in a PR to React: https://github.com/facebook/react/pull/10011
2017-06-21 11:25:22 +01:00
..
dist Fix React to work with QtWebKit 2017-06-21 11:25:22 +01:00
lib Fix React to work with QtWebKit 2017-06-21 11:25:22 +01:00
index.js Vendorize React. This is required at this time because we need to modify it to work with QtWebKit. 2017-06-21 11:20:02 +01:00
LICENSE Vendorize React. This is required at this time because we need to modify it to work with QtWebKit. 2017-06-21 11:20:02 +01:00
package.json Vendorize React. This is required at this time because we need to modify it to work with QtWebKit. 2017-06-21 11:20:02 +01:00
PATENTS Vendorize React. This is required at this time because we need to modify it to work with QtWebKit. 2017-06-21 11:20:02 +01:00
README.md Vendorize React. This is required at this time because we need to modify it to work with QtWebKit. 2017-06-21 11:20:02 +01:00
server.js Vendorize React. This is required at this time because we need to modify it to work with QtWebKit. 2017-06-21 11:20:02 +01:00

react-dom

This package serves as the entry point of the DOM-related rendering paths. It is intended to be paired with the isomorphic React, which will be shipped as react to npm.

Installation

npm install react react-dom

Usage

In the browser

var React = require('react');
var ReactDOM = require('react-dom');

class MyComponent extends React.Component {
  render() {
    return <div>Hello World</div>;
  }
}

ReactDOM.render(<MyComponent />, node);

On the server

var React = require('react');
var ReactDOMServer = require('react-dom/server');

class MyComponent extends React.Component {
  render() {
    return <div>Hello World</div>;
  }
}

ReactDOMServer.renderToString(<MyComponent />);

API

react-dom

  • findDOMNode
  • render
  • unmountComponentAtNode

react-dom/server

  • renderToString
  • renderToStaticMarkup