https://react-ko.dev/reference/react/Fragment

Caveats

  • React๋Š” <><Child/></>์™€ [<Child/>] ์‚ฌ์ด, <><Child/></>์™€ <Child/> ์‚ฌ์ด๋ฅผ ๋ฒˆ๊ฐˆ์•„ ๋ Œ๋”๋งํ•  ๋•Œ state๋ฅผ ์žฌ์„ค์ •ํ•˜์ง€ ์•Š๋Š”๋‹ค. ํ•˜์ง€๋งŒ ํ•œ๋‹จ๊ณ„ ๋” ๊นŠ์€ <><><Child/></></>์™€ [<Child/>]๋ฅผ ๋ฒˆ๊ฐˆ์•„ ๋ Œ๋”๋งํ•  ๋•Œ๋Š” state๋ฅผ ์žฌ์„ค์ •ํ•œ๋‹ค. ์ฐธ๊ณ