Applying TypeScript to React while learning while making web games
Let's use React and TypeScript together by adding TypeScript to a web game made with React and React Router, Redux, and MobX.
- Unresolved
express response 타입
type JsonBody = { success: boolean; data: any; }; declare global { namespace Express { export interface Response { json: (
reacttypescriptgogosssing950908
・
0
201
1
- Resolved
createRoot
import * as React from 'react'; import * as ReactDOM from 'react-dom/client'; import GuGuDan from './GuGuDan';
reacttypescriptdongwook98
・
0
274
1
- Unresolved
babel-loader질문입니다! 왜쓰는지 궁금합니다!
react-typescript강좌 끝말잇기 부분에서 미래에서 온 제로초님께서webpack.config.ts파일에 추가하라고 하신 babel-loader에 관해서 질문이 있습니다.module설정하는 부분에 babel-loader를 추가해주었
reacttypescriptrud1676371262
・
0
678
1
- Unresolved
undefined 처리
강의에서 computerChoice의 리턴타입에 undefined가 추가되어있는 문제 해결하실때 if() throw new Error(); 사용해서 처리하거나 느낌표(!) 사용하신다했는데 if() throw new Error();로 어떻게 처리하신다는건지 알 수
typescriptreactgogosssing950908
・
0
485
1
- Unresolved
compilerOptions lib 관련
강의에서 lib 옵션 배열에 es5, es2015, es2016, es2017 등 모두 적어두면 좋다고 말씀해주셨는데 스펙에 추가된 문법이나 이런것들을 사용하기 위해서 그렇게 말씀해주신걸로 아는데 다른것들은 작성하지 않고 아래와 같이<pre class="
typescriptreactgogosssing950908
・
0
322
1
- Unresolved
event type 찾기
안녕하세요 다른 기본적인 data type들은 제 의도에 따라 사용하면 되는데, event type 같은 경우는 굉장히 낯설고 그냥 감으로 하는 것 같이 잘 적용했는지 의문이 듭니다.event type을 제대로 적용했는지 확인하는 방법이
typescriptreactdlxotjde6891
・
0
316
1
- Unresolved
정확한 type vs 가독성
케바케이겠지만, 가독성이 좀 떨어지더라도 type을 정확하게 표현하는 것이 나중에 프로젝트가 커질 때 도움이 될까요?js로 작성했을 때보다 ts가 가독성이 개인적으로 많이 떨어지더라고요...
typescriptreactkjkksu971673
・
0
284
1
- Unresolved
useRef에 대해 질문드립니다.
자바스크립트는 오버로딩을 지원하지 않는 걸로 알고 있습니다.useRef가 3가지 경우로 나눠서 사용이 가능한 이유가 궁금합니다.
reacttypescriptkjkksu971673
・
0
298
1
- Resolved
tsx파일에서 에러 표시
안녕하세요 제로초님현재 강의를 들으면서 tsx파일로 진행을 하고있는데<img src="https://cdn.inflearn.com/public/files/posts/67db02a1-1b64-490e-a971-240a6372c170/imag
reacttypescriptwoo10380681
・
0
848
1
- Unresolved
Props type 질문드립니다.
const Try: FunctionComponent = ({ tryInfo }) => {...} 대신에 const Try = ({ tryInfo } : TryInfo) =>
reacttypescriptkjkksu971673
・
0
222
1
- Unresolved
webpack.config.ts/ Could not find a declaration file for module '@pmmmwh/react-refresh-webpack-plugin'.
안녕하세요, 강좌를 따라가던 중 오류가 생겨 질문드립니다. 분명 <span style="color: #ecc48d; background-color: #011627; font-fami
typescriptreactgiajihyej2495
・
0
583
1
- Unresolved
18버전에서의 ReactDOM.render
18버전에서 컴파일은 정상적으로 되었으나 ReactDOM.render 지원이 안되다는 에러가 나옵니다. 그래서 아래처럼 변경 했는데, 이부분도 다뤄주시면 좋겠습니다. <div style="color: #fff1f3; background-colo
reacttypescriptimredcat
・
1
651
1
- Unresolved
깃허브에 react-router@6 업데이트 해주신 코드 질문드립니다.
제로초님 안녕하세요, 좋은 강의 만들어주셔서 감사합니다. https://github.com/ZeroCho/ts-react/blob/master/react-router/GameMatcher.tsx react-router@6버전으로 업데이트
reacttypescriptjampark
・
0
283
1
- Unresolved
2강 끝말잇기 npx webpack 오류가 질의사항
syntaxError를 구글링 해봐도 잘 모르겠습니다 ... <img title="에러1.png" src="https://cdn.inflearn.com/public/files/posts/c943a4b1-f826-4ff1-8d16-1ebc7fcf7c85
reacttypescripttlsgkdals713087
・
0
398
1
- Resolved
Property 'render' does not exist on type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
<pre class="language-javascript
typescriptreactjiindev0614
・
0
707
1
- Unresolved
webpack.config.ts import 할 때 에러좀 봐주세요!!
안녕하세요 <div class="type-pla
typescriptreactkimhanjune932529
・
0
296
1
- Unresolved
React.FC에 대해 궁금합니다.
안녕하세요~ React.FC에 대해 조금 찾아보니 사용하지 않는 것을 추천한다는 말이 있던데, 상황에 맞게 사용하면 되는 것인지 아니면 사용하지 않는 추세가 맞는 것인지 또한 사용하신 이유
reacttypescriptgabminkim
・
0
693
1
- Unresolved
가위바위보 interval 타입과 이벤트타입에 관한질문
Q1. 제로초님 가위바위보편에서는 interval의 초기값과 타입에 null이 없어서 <img src="https://cdn.inflearn.com/public/files/posts/2e
reacttypescriptheedo
・
0
337
1
- Unresolved
npm run dev 실행은 성공적으로 되는데
npm run dev 실행은 성공적으로 되는데 </
typescriptreactheedo
・
0
665
2
- Unresolved
redux 유료강좌를 듣고 와야 되는지 여쭈어보려고 합니다.
강의 초반에 redux에 대해서 미리 공부해오고 redux에 type 붙이는것만 알려주신다고 하셨는데 react 무료강좌에서는 redux에 대해 설명한 것이 없으셨던거 같아서요.. 유로강좌인 redux + mobx
유료강좌reduxtypescriptreactyjym33
・
0
313
1

