Input + Output = True
React index.tsx ํ์ ์คํฌ๋ฆฝํธ ์๋ฌ ๋ณธ๋ฌธ
React typescript root Error
argument of type 'htmlelement | null' is not assignable
to parameter of type 'element | documentfragment'
์ ๋ ํฐ์ ํ์ ์ ์ง์ ํด์ฃผ๋ฉด ๋๋ค.
index.tsx์์๋ document.getElementById('root')
1. ์๋ฌ : document.getElementById('root')
2. ํด๊ฒฐ : document.getElementById('root') as HTMLElement
Comments