NextJS 14 Trick I bet you didn't Know 🤯

  Рет қаралды 7,388

Piyush Garg

Piyush Garg

Күн бұрын

Hey Everyone, In this video, we'll see a cool trick of NextJS 14 to understand how Server and Client components actually work and how you can compose both of these.
Master NextJS 14 learn.piyushga...
Full Stack Twitter Clone learn.piyushga...
Master Docker learn.piyushga...
Video Titles
- React Server Components
- NextJS 14
- NextJS 14 Server Components
- How to Render Server Component inside Client Component
Hashtags
#reactjs #nextjs #nextjs14 #nodejs #webdevelopment #fullstackwebdevelopment

Пікірлер: 45
@itzaxen
@itzaxen 7 ай бұрын
That's what I want to learn. Thank you bro. Mai 3 days se ye issue me fasa hua tha. Mujhe 1 server component banana tha Jo client pe render ho aur uske baad uspe client component dom manipulation kar paye.
@sumitsahu8657
@sumitsahu8657 10 ай бұрын
Hello Piyush, I'm currently working on a company project. Could you please create a video discussing the best practices for API integration? Specifically, I'm interested in understanding the pros and cons of making a direct database call versus creating APIs in a separate file. I would appreciate insights into the best and standard practices in this regard.
@DeveloperZenid
@DeveloperZenid 10 ай бұрын
hi sir, you're content is really great and explain every aspect . i have a request can you make a video on how to auto generate the SWAGGER docs with joi validation and route endpoints in NODEJS. it will be very helpfull sir 🙂. I hope you definitely make video on it .
@abhishekvishwakarma9045
@abhishekvishwakarma9045 10 ай бұрын
Great video! 🔥 Actually, I made a tweet about the same problem, and it took me some time to figure out the solution, which is exactly what you mentioned in the video.
@europeanandasian9463
@europeanandasian9463 8 ай бұрын
Bro thanks your way of teaching is great
@rajbongshi2002
@rajbongshi2002 8 ай бұрын
You are working great🔥But you should have shown the same about client component under server component. Plz make a video on this topic
@ChiragKachhadiya-n7h
@ChiragKachhadiya-n7h 4 ай бұрын
Hiii, please create a video on best tips and trick for Next JS project , 👇 Vote for this
@thisishabib744
@thisishabib744 9 ай бұрын
Very useful video. Tnx bro 🇧🇩❤
@abdussamad0348
@abdussamad0348 9 ай бұрын
I also did this in twitter clone course, this thing is also mentioned in next.js documentation..
@entrepreneurcoder2659
@entrepreneurcoder2659 10 ай бұрын
Hey piyush keep bringing more such videos
@sudityashrivastav
@sudityashrivastav 10 ай бұрын
How will show something like skeleton while server component is fetching data... The whole page gets busted 🙄
@Zer0.
@Zer0. 10 ай бұрын
Wrap the server component in Suspense
@plbxwoofzoo6883
@plbxwoofzoo6883 10 ай бұрын
I have a doubt !!! What if instead of changing count in the client comp , the data inside the todo (server) component changes... How could this be implemented without using context.??? helppppp
@S--xc4rv
@S--xc4rv 10 ай бұрын
Always curious about this topic , thanku for such a clear video . Though what if there is a nested children , will it be a good method also ?
@plbxwoofzoo6883
@plbxwoofzoo6883 10 ай бұрын
I am in the 5min in this vid , i can guess that we can solve this by wrapping server component inside client component . I did it before while i was doing FullStack twitter clone since i followed App version of the next js....
@GauravKumar-w5q9q
@GauravKumar-w5q9q 6 ай бұрын
Why in first approach you can still see the data in view page source ?
@AshishKumar-ft6wv
@AshishKumar-ft6wv 7 ай бұрын
Gajab! Nice Nice Nice
@acchpankaj
@acchpankaj 2 ай бұрын
sir, i have written fetch api code in server side. now I want to use same api for search based on any parameter. how to do in server side component in next 14. Could you please suggest.
@pankajdixit125
@pankajdixit125 7 ай бұрын
Can you elaborate how we can use redux with next js
@S4LTYT
@S4LTYT 9 ай бұрын
Can we wrap both welcome and data component with server parant component ? so there will be mixter of parent and child component by using or not "use client" ?
@pranshubasak8796
@pranshubasak8796 10 ай бұрын
Hi sir , apka course Master NextJS 14 Codedamn me kab ayega , codedamn really need an updated course on next js .
@JamesBond-mc7kl
@JamesBond-mc7kl 10 ай бұрын
Could you please make a video on protected pages in next js with redux toolkit
@rameshkhan3469
@rameshkhan3469 4 ай бұрын
Any coupon code available for the course?
@Shyam_Mahanta
@Shyam_Mahanta 10 ай бұрын
Great video 📷
@codenerd7823
@codenerd7823 10 ай бұрын
Pls create a video about your VS Code themes and extension. I really liked it.
@sushieatingcobra
@sushieatingcobra 10 ай бұрын
please a make detailed paid course on AWS and its servvices like S3 Lambada ECS EC2 Eks Fargate elastci bean which covers all these and AWS ecosystem as a whole
@babunandanagrahari717
@babunandanagrahari717 10 ай бұрын
Best way thanks
@Shyam_Mahanta
@Shyam_Mahanta 10 ай бұрын
Is there any discount?
@priyanshugupta9816
@priyanshugupta9816 10 ай бұрын
I know this. This was present before also before server action.
@urstrulypriyankrai
@urstrulypriyankrai 10 ай бұрын
Is this the same behaviour after building the project
@rahees_ahmed
@rahees_ahmed 10 ай бұрын
Bahi kuch din phely tu ny hi video bnai the k nextjs bekaar hy php ki tarah hy r ak phr new video?
@SHERSHAAH555
@SHERSHAAH555 7 ай бұрын
bro i purchased ur next js couse and now that page isnt available
@piyushgargdev
@piyushgargdev 7 ай бұрын
Hi, Sorry for the inconvenience. Today AWS is down. It will be up once aws is up and running
@SHERSHAAH555
@SHERSHAAH555 7 ай бұрын
@@piyushgargdev ohh ok sure np
@piyushgargdev
@piyushgargdev 7 ай бұрын
@@SHERSHAAH555 Issue resolved! Thanks for your patience 😄
@Sunil-e1d6b
@Sunil-e1d6b 10 ай бұрын
Hey I want to ask you a topic if you could help me out when I search in linked in node js job related there they required relational data base and they did not mention by using orm like prisma or sequalizer or by pure SQL query ,in orm they provide there syntax what should I learn
@rishiraj2548
@rishiraj2548 10 ай бұрын
👍💯💯
@graphicccccc
@graphicccccc 10 ай бұрын
That’s a catch
@SHERSHAAH555
@SHERSHAAH555 10 ай бұрын
Corse Hindi me hai na ?
@doctoronline461
@doctoronline461 6 ай бұрын
free kardo a series piyus please
@laughAFrame
@laughAFrame 10 ай бұрын
Next.js ssr is so annoying. It doesn't work with a lot Npm libraries like Charts, Calendars , schedulers. I was working with a dashboard that had to have a Scheduler like GOOGLE SCHEDULER etc. I tried using REACT BIG CALENDAR, but a lot of function related to big calendar didn't work cos of SSR. I tried using dynamic import but still didn't work. Next.js is good for project like small web apps like social media apps, Ecommerce etc. It's not good for management systems.
@sumitsahu8657
@sumitsahu8657 10 ай бұрын
then why didn't you use "use client" for that particular component
@laughAFrame
@laughAFrame 10 ай бұрын
@@sumitsahu8657 use client does not work on it.
@MdNajmulHossen-t3t
@MdNajmulHossen-t3t 10 ай бұрын
dada don't have any international card. Free dedoo😊😉
@yogita868
@yogita868 5 ай бұрын
I have this created this file structure in Next js version ->14 project\[[id]] Inside page.tsx I have this code-> 'use client'; import PathwayContainer from '@/components/Pathways/PathwayContainer'; const PathwayPage = () => { const clientID = '06375fa6-999a-46a8-9d80-12e41e76aa52'; return ( ); }; export default PathwayPage; This clienID I would fetch from useselector later as of now i keep code like this. and this is the component for PathwayContainer. 'use client'; interface IPathwayContainerProps { fetchClientProjects: (clientId: string) => Promise; clientID: string; } const PathwayContainer: FunctionComponent = (props) => { const { fetchClientProjects, clientID, } = props; const [loading, setLoading] = useState(false); const [activeProjectList, setActiveProjectList] = useState([]) useEffect(() => { const getActiveProjectList = async () => { try { setLoading(true); const projectInfo = await fetchClientProjects(clientID); setActiveProjectList(projectInfo); } catch { } finally { setLoading(false); } } getActiveProjectList(); }, [clientID]) return ( {activeProjectList.map((activeProject, index) => ( {activeProject.name} ))} ); }; export default connect(() => ({}), { fetchClientProjects: actions.clients.fetchClientProjects, })(PathwayContainer); whevaver user clcik on this link which i have crated using clientID is not changed but my useeffect code runs again and again whenver user click on links. same code works fine in react. How can i solve this issue.please help.
React Server Components vs Client Components
27:31
Piyush Garg
Рет қаралды 24 М.
This React Trick Will Blow Your Mind 🤯
10:45
Piyush Garg
Рет қаралды 12 М.
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 7 МЛН
Inside Out 2: BABY JOY VS SHIN SONIC 3
00:19
AnythingAlexia
Рет қаралды 6 МЛН
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 32 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 1,1 МЛН
5 Tips and Tricks To Make Your Life With Next js 14 Easier
17:11
developedbyed
Рет қаралды 39 М.
the most important Next.js features to learn (in 8 minutes)
8:26
Web Dev Cody
Рет қаралды 44 М.
Don't Make These Next.js Mistakes
13:01
Dave Gray
Рет қаралды 23 М.
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 214 М.
iPhone 16/16 Pro Review: Times Have Changed!
20:41
Marques Brownlee
Рет қаралды 3,4 МЛН
I Love Next App Router | React Server Components Explained
14:47
How To Build Anything | Art of Reverse Engineering
35:41
Piyush Garg
Рет қаралды 23 М.
Learn Next.js Parallel Routes In 16 Minutes
16:18
Web Dev Simplified
Рет қаралды 129 М.
WTF Do These Even Mean
13:44
Web Dev Simplified
Рет қаралды 87 М.
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 7 МЛН