Skip to content

Commit eb6356e

Browse files
committed
refactoring
1 parent 84c15c5 commit eb6356e

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "hexo-theme-react-mobx-typescript",
2+
"name": "react-typescript-mobx-state-tree-mobx-react-lite-boilerplate",
33
"version": "1.0.0",
44
"description": "Boilerplate: React project with Typescript + MST + mobx-react-lite, ES6 compilation and hot code reloading",
55
"scripts": {
@@ -15,8 +15,8 @@
1515
"boilerplate",
1616
"mobx",
1717
"starter-kit",
18-
"hexo",
19-
"hexo-theme"
18+
"mobx-state-tree",
19+
"mobx-react-lite"
2020
],
2121
"author": "Anna Janicka <annajanicka1991@gmail.com> (http://github.com/annajanicka)",
2222
"license": "MIT",

src/index.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,9 @@ import { BrowserRouter, RouteComponentProps } from 'react-router-dom';
44
import Routes from './routes';
55
import App from './app';
66

7-
async function init() {
7+
let routes: React.ComponentType<RouteComponentProps<any>> = Routes;
88

9-
let routes: React.ComponentType<RouteComponentProps<any>> = Routes;
10-
11-
ReactDOM.render(
12-
<App router={BrowserRouter} routes={routes} />,
13-
document.getElementById('root') as HTMLElement
14-
);
15-
}
16-
17-
init().catch(e => console.log(e));
9+
ReactDOM.render(
10+
<App router={BrowserRouter} routes={routes} />,
11+
document.getElementById('root') as HTMLElement
12+
);

0 commit comments

Comments
 (0)