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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
examples/update-on-async-rendering/using-react-lifecycles-compat.js
|
@ -1,6 +1,6 @@ |
|
|
import React from 'react'; |
|
|
import React from 'react'; |
|
|
// highlight-next-line
|
|
|
// highlight-next-line
|
|
|
import polyfill from 'react-lifecycles-compat'; |
|
|
import {polyfill} from 'react-lifecycles-compat'; |
|
|
|
|
|
|
|
|
class ExampleComponent extends React.Component { |
|
|
class ExampleComponent extends React.Component { |
|
|
// highlight-next-line
|
|
|
// highlight-next-line
|
|
|