-
https://create-react-app.dev/docs/proxying-api-requests-in-development/
AJAX and APIs
https://reactjs.org/docs/faq-ajax.html
fetch("https://api.example.com/items") .then(res => res.json()) .then( (result) => { this.setState({ isLoaded: true, items: result.items }); }); ...
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
https://velog.io/@daybreak/React-Fetch%ED%95%A8%EC%88%98
'React' 카테고리의 다른 글
styled-jsx/css 스타일 적용 (0) 2022.12.23 react-icons (0) 2022.12.23 React Tsx Jsx 반복문 for map (0) 2022.12.20 React HelloWorld Tsx파일 Ex (0) 2022.12.20 NodeJs & Typescript 기반에서 React 배포 (0) 2022.11.20 React 빌드와 테스트 (0) 2022.11.20 React Component setState (0) 2022.11.19 React props 합성 (Composition) Ex (0) 2022.11.19