Skip to content

Commit

Permalink
Make App use Main from the new local package
Browse files Browse the repository at this point in the history
Now webapp will tsc correctly (because we have index.ts at mymain root).
But when `yarn start` it'll fail in browser because mymain not built.
We have to tsc in mymain to build the package and it'l run successfully.
  • Loading branch information
untsamphan committed Jun 14, 2018
1 parent 1a3ea1f commit 20ecb7a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions webapp/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Main } from 'mymain';
import * as React from 'react';
import './App.css';

Expand All @@ -11,9 +12,7 @@ class App extends React.Component {
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welcome to React</h1>
</header>
<p className="App-intro">
To get started, edit <code>src/App.tsx</code> and save to reload.
</p>
<Main />
</div>
);
}
Expand Down

0 comments on commit 20ecb7a

Please sign in to comment.