08/06/2022
- ์ง๊ธ์ currentUserLoader.js๋ v restricted to what it's capable of doing.
- just load
1 user=> pass it tochildrencomponents
๐๋ฆฌํฉํฐ๋ง 1 ANY USER by thier id
create userLoader.js
copy & paste all the code from CurrentUserLoader to userLoader

MAIN THING TO CHANGE! => url๋ก request ํ ๊ฒ์
by using an api call in server.js

=> line 9 ์ axios.get() ์์ endpoint ๋ฅผ /current-user์์
๋ถ๋ชจ์ปดํฌ๋ํธ์์ passํด์ฃผ๋ prop์ถ๊ฐํด์, insert that in the url
[userId] ๋ฅผ useEffect ๊ฐ์ ๊ฐ์ผ๋ก ๋ฃ๊ธฐ

DATA ์๊ธด ๋ชจ์

Add userLoader in App.js
