warning.js:34 warning: react-modal: app element is not defined. please use modal.setappelement(el) or set appelement={el}. this is needed so screen re
How to cast an HTMLElement to a React element?\[React] React 엘리먼트 생성하기 :: createElement()2021.09.11 00:02프로그래밍/React
"export 'route' (imported as 'route') was not found in 'react-router-dom' (possible exports: browserrouter, form, hashrouter,"이런 에러가 떳는데,, 순차로 실행하니 해결
"Module build failed (from ./node_modules/source-map-loader/dist/cjs.js):""react-router", "react-router-dom" 버전업을 한 후에 저런 에러가 났는데,, 검색해도 나오는게 없었다.. 해결
= 무언가(action) 하기 위한 정보= 필수 컨텍스트, 선택 컨텍스트프로그래밍에서 context란.?= 전역 컴포넌트에서 사용 가능한 매개 변수= context 이용시 루트에서 최하위 컴포넌트까지 데이터 한 번에 전달 가능 useContext 사용법 및 예제
mobX = 상태관리 라이브러리 = redux 보다 사용 간편 = 상태관리 라이브러리 사용 이유 -> component로만 개발시 비즈니스 로직이 component에 집중되어 스파게티 코드가 됌. 상태 관리 라이브러리 사용시 component는 controller 역할
회사에서 moment.js를 쓰길래 질문을 올렸다가, 요즘 누가 그걸 쓰냐고 day.js로 바꾸라는 면박을 들었다.별다른 이유는 없는것 같고 모멘트가 지원 중단 했기 때문인것 같긴한데... 나중에 회사 코드를 변경할 일 이 생길까 해서 한가할때 비교해보려고 샌드박스에
Error ERR_REQUIRE_ESM: Must use import to ...