-
Notifications
You must be signed in to change notification settings - Fork 801
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make parcel example more fragile to #1268
- Loading branch information
Showing
3 changed files
with
18 additions
and
7 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,12 +1,16 @@ | ||
import React from 'react'; | ||
import { hot } from 'react-hot-loader'; | ||
import Counter from './Counter'; | ||
import { Problem } from './Problem'; | ||
|
||
const App = () => ( | ||
<h1> | ||
Hello, world.<br /> | ||
<Counter /> | ||
</h1> | ||
); | ||
const App = () => { | ||
return ( | ||
<h1> | ||
<Problem /> | ||
Hello, world<br /> | ||
<Counter /> | ||
</h1> | ||
); | ||
}; | ||
|
||
export default hot(module)(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
import { useExternalHook } from './Counter'; | ||
|
||
export function Problem() { | ||
useExternalHook(); | ||
return <div>the problem!!!!</div>; | ||
} |