본문 바로가기

전체 글49

React) 버튼 누르면 값이 바뀌게 하기_useState const [counter, setCounter] = React.useState(0); > 첫번째 파라미터인 counter라는 변수에 useState(n)에서 n이라는 값으로 초기화를 해준다 > 두번째 파라미터인 setCounter라는 함수에서 해당 값을 파라미터 값으로 받는다 [setCounter라는 함수를 ] setCounter((current) => current + 1); > setCounter에서 파라미터로 받은값을 변경하고 그 값으로 counter변수를 세팅해준다 setCounter(counter + 1); > setCounter에서 counter라는 변수에 직접적으로 접근하여 값을 바꿔주고 있다. 둘다 counter가 바뀌는거임 2023. 4. 13.
React) 자동완성 f1 > open user setting(JSON) "javascript": "javascriptreact" 추가 저장 되긴되는데 이게맞아?? 2023. 4. 13.
React) create-react-app 사용해보기 1 https://github.com/facebook/create-react-app GitHub - facebook/create-react-app: Set up a modern web app by running one command. Set up a modern web app by running one command. Contribute to facebook/create-react-app development by creating an account on GitHub. github.com create-react-app git 주소 그러나 여기서 다운받는게 아니라 node.js를 다운받아서 사용할것이다. https://nomadcoders.co/react-for-beginners/lobby ReactJS로 영.. 2023. 4. 13.
유니티) Pico VR 개발 시작하기 (pico4, mac) 목차) 1. Pico sdk 다운받기 2. pico 개발자 계정 전환하기 3. 유니티 프로젝트 설정하기 4. 빌드하기 참고자료) https://developer-global.pico-interactive.com/document/unity/quickstart-import-sdk [ 1. Pico sdk 다운받기 ] https://developer-global.pico-interactive.com/sdk?deviceId=1&platformId=1&itemId=12 https://developer-global.pico-interactive.com/sdk?deviceId=1&itemId=12&platformId=1 developer-global.pico-interactive.com pico unity integ.. 2023. 3. 13.