Functions cannot be passed directly to client components (FIXED)

  Рет қаралды 1,723

ByteGrad

ByteGrad

10 ай бұрын

Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).
👉 Add authentication to your app FAST: bit.ly/3QOe1Bh
👉 NEW React & Next.js Course: bytegrad.com/courses/professi...
👉 Professional JavaScript Course: bytegrad.com/courses/professi...
👉 Professional CSS Course: bytegrad.com/courses/professi...
👉 Discord: all my courses have a private Discord where I actively participate
🔔 Email newsletter (BIG update soon): email.bytegrad.com
⏱️ Timestamps:
0:00 Solution
#webdevelopment #coding #programming

Пікірлер: 6
@nelsonfrank
@nelsonfrank 2 ай бұрын
Thanks. Helpfully video
@dickimaulanayusuf616
@dickimaulanayusuf616 9 ай бұрын
Hi, nice video! I have a question. What happens when a page that is strictly for the server attempts to import a client component? Then, the page (server component) passes the function to the client. 🤔
@dallindavis2131
@dallindavis2131 8 ай бұрын
Good video, but you gave a solution and then said "this isn't a very good solution." What is a good solution?
@AnkitYadav-ty4up
@AnkitYadav-ty4up 7 ай бұрын
Yes please do let us know the good solution
@brunovaz
@brunovaz 6 ай бұрын
apparently is to not use app router. This shit's not ready lol
@haseebiqbal4140
@haseebiqbal4140 2 ай бұрын
i want to do something like this {children} . anything inside this tag should be rendered on client, but it still renders on server here is my implementation ``` 'use client'; import React, { PropsWithChildren, useEffect } from 'react'; function ClientOnly({ children }: PropsWithChildren) { useEffect(() => { console.log('CLIENT'); }, []); return children; } export default ClientOnly; ```
Why I don't use React-Query and tRPC in Next.js
18:58
ByteGrad
Рет қаралды 68 М.
Chips evolution !! 😔😔
00:23
Tibo InShape
Рет қаралды 42 МЛН
MOM TURNED THE NOODLES PINK😱
00:31
JULI_PROETO
Рет қаралды 6 МЛН
How I prepare to meet the brothers Mbappé.. 🙈 @KylianMbappe
00:17
Celine Dept
Рет қаралды 53 МЛН
Server vs client components in NextJs 13 - When to use which
34:07
Hamed Bahram
Рет қаралды 32 М.
box-sizing: border-box (EASY!)
10:09
ByteGrad
Рет қаралды 14 М.
Why use Type and not Interface in TypeScript
14:12
ByteGrad
Рет қаралды 188 М.
This Data Fetching Combo is OP
7:19
Josh tried coding
Рет қаралды 50 М.
Props from Child to Parent Component (Hack)
8:09
Code with Ania Kubów
Рет қаралды 118 М.
Next.js Server Actions...  5 awesome things you can do
7:51
Beyond Fireship
Рет қаралды 248 М.
Angular vs React: which should you choose?
6:26
Kodaps Academy
Рет қаралды 105 М.
Chips evolution !! 😔😔
00:23
Tibo InShape
Рет қаралды 42 МЛН