본문 바로가기

전체 글

(274)
spring jpa ddl auto create spring jpa ddl-auto create 테이블이 있으면 다 drop하고 다시 만든다. 따라서 로컬에서만 사용할것
Uncaught TypeError: Failed to resolve module specifier "three". Relative references must start with either "/", "./", or "../". 설정하기 귀찮아서 npm에서 바로 모듈을 다운받아 돌려보았더니 에러가 나는데.. node_module에서 바로 가져와 사용하려니 안되는게 아마도 es6의 jsm과 node는 모듈을 임포트하는 방식에 차이가 있어서 그런것 같다. 결국 node_modules는 웹펙이나 번들러로 돌려야만 된다는건가?
타입스크립트 ! ? ! : 확정할당으로 무조건 값이 할당되어 있다고 단언하여 null과 undefined 제약으로 부터 피할 수 있음 ? : 옵셔널로 값이 있을수도 있고 없을수도 있음
test 소프트 웨어 테스트 - 화면이 잘 그려지는가? - 기능이 잘 동작하는가? 시나리오 테스트 puppeteer
Uncaught Error: Expected the reducer to be a function. createStore에서 리듀서 넘겨줄때 문제가 생겼다는것
IntersectionObserver let callback = (entries, observer) => { entries.forEach(entry => { // Each entry describes an intersection change for one observed // target element: // entry.boundingClientRect // entry.intersectionRatio // entry.intersectionRect // entry.isIntersecting // entry.rootBounds // entry.target // entry.time }); }; entries배열이 한개만 있다면 [entry] 이렇게 전개연산을 하던가 entries[0] 이런식으로 사용해도 될듯하다. https://developer..
Deploying to github pages (React, Vue) yarn add --dev gh-pages @types/gh-pages "scripts": { ... "predeploy": "yarn build", "deploy": "gh-pages -d build" } "homepage": "https://ID.github.io/repo명" in package.json yarn deploy https://create-react-app.dev/docs/deployment/#github-pages vue.config.js파일에 publicPath:"/git repo name" , outputDir: "./docs" 로 설정하고 pages설정시 root가 아닌 ./docs폴더로 경로를 잡아준다 shell파일을 만들어서 실행시..
React Hooks useEffect 제대로 알고 쓰기 1 2 3 4 5 useEffect( () => console.log("mount"), [] ); useEffect( () => console.log("data1 update"), [ data1 ] ); useEffect( () => console.log("any update") ); useEffect( () => () => console.log("data1 update or unmount"), [ data1 ] ); useEffect( () => () => console.log("unmount"), [] ); 1. virtual dom에 마운트되고서 2. 배열 안의 값이 변경 되었을때 업데이트 3. 다시 랜더링 될때 마다 4. 배열 안의 값이 변경되었거나 언마운트 될 때 cleanup함수 실행 5. 언..