인프런 커뮤니티 질문&답변
Property 'render' does not exist on type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
해결된 질문
작성
·
713
0
<div>
<Routes>
<Route path="/" render={(props) => <GameMaster {...props}/>}/>
<Route path="/game/:name" render={(props) => <GameMaster {...props}/>}/>
</Routes>
</div>
해당 코드에서
Property 'render' does not exist on type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
라는 에러가 계속 뜨는데, 무슨 이유일까요? ㅠㅠ
퀴즈
React Router에서 현재 라우트 정보(경로, 파라미터 등)와 네비게이션 기능(페이지 이동)을 제공하는 세 가지 핵심 객체는 무엇일까요?
Router, Switch, Link
Component, Render, Children
History, Location, Match
Params, Search, Pathname




