browser

koa-nextjs-react-typescript-boilerplate

[github repository](https://github.com/yceffort/koa-nextjs-react-typescript-boilerplate) nextjs์™€ react ๋งŒ ๊น”๋”ํ•˜๊ฒŒ ์“ฐ๊ณ  ์‹ถ์ง€๋งŒ, ๊ทธ๋Ÿฌ๊ธฐ์—” ํ˜„์‹ค์ ์ธ ๋ฌธ์ œ๊ฐ€ ๋ช‡๊ฐ€์ง€ ์žˆ๋‹ค ...

Read
browser web

๋ธŒ๋ผ์šฐ์ €๋Š” ์–ด๋–ป๊ฒŒ ๋™์ž‘ํ•˜๋Š”๊ฐ€? - ๋ชจ๋˜ ์›น๋ธŒ๋ผ์šฐ์ €๊ฐ€ ๋™์ž‘ํ•˜๋Š” ๋ฐฉ๋ฒ•

### ๐Ÿšง์ž‘์„ฑ์ค‘ ๐Ÿšง [์›๋ฌธ-How Browsers Work: Behind the scenes of modern web browsers](https://www.html5rocks.com/en/tutorials/internals/howbrowserswork/) > ์ด ๊ธ€์„ ์š”์•ฝ/๋ฒˆ์—ญํ•œ ๋” ์ข‹์€ ๊ธ€์ด [๋„ค์ด๋ฒ„ d2](https://d2.naver.com/...

Read
react javascript

React Hooks Api (2)

### useReducer ```javascript const [state, dispatch] = useReducer(reducer, initialArg, init); ``` `useState`์˜ ๋Œ€์ฒด ํ•จ์ˆ˜๋‹ค. ๋‹ค์ˆ˜์˜ ํ•˜์œ— ๊ฐ’์„ ๋งŒ๋“œ๋Š” ๋ณต์žกํ•œ ๋กœ์ง, ํ˜น์€ ๋‹ค์Œ state๊ฐ€ ์ด์ „ state์˜ ์˜์กด์ ์ธ ๊ฒฝ์šฐ์— ์“ด๋‹ค. ๋ญ๊ฐ€ ๋ญ”์ง€ ๋ชจ๋ฅด๊ฒ ์œผ๋‹ˆ๊นŒ ์˜ˆ์ œ๋ฅผ ๋ณด์ž. ...

Read
react javascript

React Hooks Api (1)

# Hooks API Hook์€ react 16.8์—์„œ ์ถ”๊ฐ€๋œ ๊ฐœ๋…์œผ๋กœ, Hook์„ ์‹œ์šฉํ•˜๋ฉด class๋ฅผ ๊ฐ–์„ฑํ•˜์ง€ ์•Š์•„๋„ state๊ด€๋ฆฌ์™€ ๊ฐ™์€ react์˜ ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค. ## ๊ธฐ๋ณธ Hook ### useState ```javascript const [state, setState] = useState(initialState); setStat...

Read
infrastructure

HAProxy

## ๋กœ๋“œ๋ฐธ๋Ÿฐ์„œ > ๋กœ๋“œ ๋ฐธ๋Ÿฐ์‹ฑ์ด๋ž€, ๋ถ€ํ•˜ ๋ถ„์‚ฐ์„ ์œ„ํ•ด์„œ ๊ฐ€์ƒ IP๋ฅผ ํ†ตํ•ด ์—ฌ๋Ÿฌ ์„œ๋ฒ„์— ์ ‘์†ํ•˜๋„๋ก ๋ถ„๋ฐฐํ•˜๋Š” ๊ธฐ๋Šฅ์„ ๋งํ•œ๋‹ค. ๋กœ๋“œ ๋ฐธ๋Ÿฐ์‹ฑ์—์„œ ์‚ฌ์šฉํ•˜๋Š” ์ฃผ์š” ๊ธฐ์ˆ ์€ - NAT(Network Address Translation): ์‚ฌ์„ค IP ์ฃผ์†Œ๋ฅผ ๊ณต์ธ IP ์ฃผ์†Œ๋กœ ๋ฐ”๊พธ๋Š” ๋ฐ ์‚ฌ์šฉํ•˜๋Š” ํ†ต์‹ ๋ง์˜ ์ฃผ์†Œ ๋ณ€์กฐ๊ธฐ์ด๋‹ค. - DSR(Dynamic Source Rout...

Read