목록🎨FrontEnd/typescript (1)
Input + Output = True

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
🎨FrontEnd/typescript
2023. 4. 1. 22:44