React/Library

    [ React ] axios

    🔴 Introduction ⚪ 브라우저, Node.js를 위한 Promise API를 활용하는 HTTP 비동기 통신 라이브러리 🟠 Official 시작하기 | Axios Docs 시작하기 브라우저와 node.js에서 사용할 수 있는 Promise 기반 HTTP 클라이언트 라이브러리 Axios란? Axios는 node.js와 브라우저를 위한 Promise 기반 HTTP 클라이언트 입니다. 그것은 동형 입니다(동일한 코 axios-http.com 🟡 Install npm i axios 🟢 Usage import axios from "axios"; const BASE_URL = `https://api.coinpaprika.com/v1`; export const fetchCoins = async () => { ..

    [ React ] styled-components

    🔴 styled() : 스타일 확장 import styled from "styled-components"; const Box = styled.div` background-color: ${(props) => props.bgColor}; width: 100px; height: 100px; `; const Circle = styled(Box)` border-radius: 50px; `; function App() { return ( ); } export default App; 🟠 as : 같은 스타일 HTML 태그 변경 import styled from "styled-components"; const Btn = styled.button` color: white; background-color: tomato; ..