at what point does next js inject the main react package on the browser
Answered
NuclearMonkey posted this in #help-forum
when does it happen?
11 Replies
does it only inject it when using Client Components?
@NuclearMonkey when does it happen?
do you mean react-dom?
on page load
i mean the main react
does it still inject it when only using RSC?
okay, it injects it but with no hydration, but with use client it injects with hydration
why does it need to inject react if I'm only using only RSC, it doesnt need interactivity and states right
react already renders it the server so why inject the main react package on the browser if there is no state
@NuclearMonkey why does it need to inject react if I'm only using only RSC, it doesnt need interactivity and states right
they load it for soft navigation. if you want 0 js, use astro
okay thanks for the info bro