Browse Source

Merge pull request #764 from bvaughn/react-lifecycles-compat-v2

Updated react-lifecycles-compat example to show 2.0 named export
main
Brian Vaughn 7 years ago
committed by GitHub
parent
commit
c4bf6b087a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      examples/update-on-async-rendering/using-react-lifecycles-compat.js

2
examples/update-on-async-rendering/using-react-lifecycles-compat.js

@ -1,6 +1,6 @@
import React from 'react';
// highlight-next-line
import polyfill from 'react-lifecycles-compat';
import {polyfill} from 'react-lifecycles-compat';
class ExampleComponent extends React.Component {
// highlight-next-line

Loading…
Cancel
Save