Published on2019-08-20ํ์ ์คํฌ๋ฆฝํธ ํ์ ๋จ์ธjavascriptreactํ์ ์คํฌ๋ฆฝํธ์ ํ์ ๋จ์ธ
Published on2019-08-13๋ฆฌ์กํธ ๋ฉด์ ์ง๋ฌธ ๋ชจ์javascriptreact[์๋ฌธ-reactjs-interview-questions](https://github.com/sudheerj/reactjs-interview-questions) [1. Core React](/2019/08/13/reactjs-interview-questions-1/) [2. React - Router, Internationalization, Redux,...
Published on2019-08-12React Hooks Api (2)reactjavascript### useReducer ```javascript const [state, dispatch] = useReducer(reducer, initialArg, init); ``` `useState`์ ๋์ฒด ํจ์๋ค. ๋ค์์ ํ์ ๊ฐ์ ๋ง๋๋ ๋ณต์กํ ๋ก์ง, ํน์ ๋ค์ state๊ฐ ์ด์ state์ ์์กด์ ์ธ ๊ฒฝ์ฐ์ ์ด๋ค. ๋ญ๊ฐ ๋ญ์ง ๋ชจ๋ฅด๊ฒ ์ผ๋๊น ์์ ๋ฅผ ๋ณด์. ...
Published on2019-08-09React Hooks Api (1)reactjavascript# Hooks API Hook์ react 16.8์์ ์ถ๊ฐ๋ ๊ฐ๋ ์ผ๋ก, Hook์ ์์ฉํ๋ฉด class๋ฅผ ๊ฐ์ฑํ์ง ์์๋ state๊ด๋ฆฌ์ ๊ฐ์ react์ ๊ธฐ๋ฅ์ ์ฌ์ฉํ ์ ์๋ค. ## ๊ธฐ๋ณธ Hook ### useState ```javascript const [state, setState] = useState(initialState); setStat...
Published on2019-07-22Javascript Reducejavascript๋ฉ์ฒญ์ด๋ผ ๊ทธ๋ฐ์ง `reduce` ํจ์๊ฐ ์ ์ดํด ๋์ง ์์๋ค. ## Reduce ```javascript const list = [1, 2, 3, 4, 5]; const initValue = 10; const totalSum = list.reduce( (accumulator, currentValue, currentIndex, array) => { ...