inflearn logo
강의

Khóa học

Chia sẻ kiến thức

Ứng dụng TypeScript vào React đã học khi làm web game

withRouter

Property 'render' does not exist on type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.

Đã giải quyết

746

jiindev0614

18 câu hỏi đã được viết

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)'.
 
라는 에러가 계속 뜨는데, 무슨 이유일까요? ㅠㅠ

typescript react

Câu trả lời 1

1

zerocho

리액트라우터 6버전으로 하시는건가요? 강좌는 5버전입니다. 6버전은 코드 깃헙에만 있습니다.

express response 타입

0

254

1

createRoot

0

317

1

babel-loader질문입니다! 왜쓰는지 궁금합니다!

0

728

1

undefined 처리

0

531

1

compilerOptions lib 관련

0

359

1

event type 찾기

0

358

1

정확한 type vs 가독성

0

330

1

useRef에 대해 질문드립니다.

0

338

1

tsx파일에서 에러 표시

0

907

1

Props type 질문드립니다.

0

265

1

webpack.config.ts/ Could not find a declaration file for module '@pmmmwh/react-refresh-webpack-plugin'.

0

628

1

18버전에서의 ReactDOM.render

1

685

1

깃허브에 react-router@6 업데이트 해주신 코드 질문드립니다.

0

329

1

2강 끝말잇기 npx webpack 오류가 질의사항

0

435

1

webpack.config.ts import 할 때 에러좀 봐주세요!!

0

337

1

React.FC에 대해 궁금합니다.

0

742

1

가위바위보 interval 타입과 이벤트타입에 관한질문

0

367

1

npm run dev 실행은 성공적으로 되는데

0

730

2

redux 유료강좌를 듣고 와야 되는지 여쭈어보려고 합니다.

0

347

1

git 내용과 강의 내용이 달라서 여쭈어봅니다.

0

253

1

Ball.tsx 타이핑

0

379

2

react-router 버젼 업그레이드 변경사항 문의

0

322

2

리액트 타입스크립트 공식문서

0

369

1

button 클릭 할 떄 마다 더보기/닫기 에러

0

887

1