Skip to content

Commit

Permalink
fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Sep 27, 2019
1 parent 05e2afc commit dc47dd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/02_typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ import {

import App from './App';

createRoot(document.getElementById('app')).render(React.createElement(App));
const ele = document.getElementById('app');
if (!ele) throw new Error('no app');
createRoot(ele).render(React.createElement(App));

0 comments on commit dc47dd2

Please sign in to comment.