What happens if I remove use client from a page and instead create a separate component to include the use client thing? How would this change affect the behavior of the page?
@earlymorningdev25 күн бұрын
Great question. Think of it like this. Adding use client to a component makes that component run using js on the browser. Use client on a page makes the whole page run in js. Use client on individual components mean that only these components load client side. Here's the steps in this case: 1. page loads from the server 2. Use client components load using js on the browser. Does that make sense?
@neutral_positron2 ай бұрын
Bro you casually showed your whatsapp screen at 8:20 XD XD