기타/FE
-
[React] 서머코딩 3주차 Context/Hook/mock-server기타/FE 2020. 7. 20. 14:21
src/App.js //App.js import React, {useState} from 'react'; import './App.css'; import {ThemedButton, ThemedContextButton,Counter,Feed} from "./component"; import {ThemeContext,FontContext} from "./context"; function App() { const [themeValue, setThemeValue] = useState("dark"); const [isCounter, setIsCounter] = useState(true); return ( {isCounter===true?:null} setThemeValue("day")}>daychange setT..
-
[React] 리액트 프로젝트 사용 기술 정리기타/FE 2020. 6. 9. 15:57
React 프로젝트 사용한 기술 및 라이브러리 생겼던 문제들 이미지 용량 nginx 이모티콘 utf 처리 timezone 0. 기본 레이아웃 및 큰 컴포넌트 index/Root/App에서 Login or Dashboard로 0-1. React-router-dom // Root.js import {BrowserRouter} from “ React-router-dom “ Q) 이렇게 한 이유 + react-router-dom이란? react, react-dom, reat-router-dom Q) 컴포넌트란 ??리액트란?? Q) 리액트 기본 구조 이해하기 Class hello extend Component{ render(){ return(); } } export default hello 0-2. axios.d..