전체 글94 useContext 써보기 이해하려면 역시 예시가 가장 필요한 것 같다 ... import React, { createContext, useContext, useState } from "react"; const MyContext = createContext(); function MyProvider(props) { const [num, setNum] = useState(""); const handleClick = () => { setNum('100'); }; return ( {props.children} ); } function MyConsumerComponent() { const sharedData = useContext(MyContext); // 컨텍스트 값을 가져옴 console.log(sharedData); // shared.. 2023. 10. 10. react-modal react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`. ariaHideApp={false} 에 추가 2023. 9. 18. [React-native] 투두리스트 만들기 - 디자인 참고: https://wsss.tistory.com/1581 - 깃허브 : RNapp/RNapp/TodoList.js at main · czmcm5/RNapp (github.com) 리액트 네이티브 연습 겸 가볍게 투두리스트를 만들어 보았다! 예쁘게 만들고 싶어서 열심히 서치해보니 예쁜 디자인이 모아진 블로그를 찾았다ㅎㅎ 참고하기 너무 좋은듯 html로 만들어진걸 네이티브로 만들어보기 !! 추가 / 삭제 / 할일완료 체크까지 모두 잘 된다 ^.^!! 아쉬운게 있다면 ... 타이틀 상단바를 어떻게 해야 예쁘게 할 수 있을까? 곰곰곰 완성된 디자인을 보고 만들면 쉬운데, 디자인부터 내가 직접 창조해서 하려하면 늘 어려운 것 같다(디자이너들 존경ㅜㅜ) + https://couquedassee.tis.. 2023. 9. 12. Error: Unsupported top level event type "onGestureHandlerStateChange" dispatched https://stackoverflow.com/questions/54923622/unsupported-top-level-event-type-ongesturehandlerstatechange-dispatched-in-ipho 2023. 8. 25. 이전 1 2 3 4 5 6 7 8 ··· 24 다음