FYI: React Confの動画 https://youtu.be/pj5N-Khihgc https://youtu.be/ytudH8je5ko (個人的)React v18のメイン Suspense automatic batching useDefferedValue hook startTransition 今回はReact18と言うよりSuspenseの話になります Suspenseによって何が変わるのか UX面 ユーザーに対して表示できるところから段階的にビューを表示させることができる 重たい処理が必要なところは完了後に表示させる コード面 ビューの要素だけをJSXに書くことができる isLoading&&<Loader/>みたいな奴がいらなくなる Apollo,React Queryと組み合わせることでfetch on renderとかfetch then render
![いまさらのReact 18](https://cdn-ak-scissors.b.st-hatena.com/image/square/3de5671bd163048caa703f78278bf571c8679742/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--CxQ7qODb--%2Fc_fit%252Cg_north_west%252Cl_text%3Anotosansjp-medium.otf_55%3A%2525E3%252581%252584%2525E3%252581%2525BE%2525E3%252581%252595%2525E3%252582%252589%2525E3%252581%2525AEReact%25252018%252Cw_1010%252Cx_90%252Cy_100%2Fg_south_west%252Cl_text%3Anotosansjp-medium.otf_37%3AReo777%252Cx_203%252Cy_121%2Fg_south_west%252Ch_90%252Cl_fetch%3AaHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL3plbm4tdXNlci11cGxvYWQvYXZhdGFyL2NjM2QwYzBiNmUuanBlZw%3D%3D%252Cr_max%252Cw_90%252Cx_87%252Cy_95%2Fv1627283836%2Fdefault%2Fog-base-w1200-v2.png)