-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1344 from maratfakhreev/fix-typescript-example
Make typescript example work with latest react-hot-loader environment
- Loading branch information
Showing
6 changed files
with
2,710 additions
and
2,245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
import {hot} from 'react-hot-loader/root'; | ||
import { hot } from 'react-hot-loader/root' | ||
import * as React from 'react' | ||
import Counter from './Counter' | ||
|
||
const App = () => ( | ||
<div> | ||
<h1>Hello, world.</ h1> | ||
<Counter/> | ||
</div> | ||
) | ||
|
||
;(async () => { | ||
console.log('You have async support if you read this instead of "ReferenceError: regeneratorRuntime is not defined" error.'); | ||
})() | ||
<div> | ||
<h1>Hello, world.</ h1> | ||
<Counter/> | ||
</div> | ||
) | ||
|
||
export default hot(App) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.