Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Intro to Next 13 Server Components
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Callum Silcock
March 09, 2023
Technology
270
0
Share
Intro to Next 13 Server Components
A lightning talk on the new Next 13 BETA Server Components feature and how to use them
Callum Silcock
March 09, 2023
More Decks by Callum Silcock
See All by Callum Silcock
Unlocking Lockfiles - A Developers Guide to Package Management
csilk
0
140
Attacking the Frontend
csilk
0
240
Advanced Testing concepts
csilk
0
350
Automating Design Review with Visual Regression
csilk
0
440
🎟 Tech Delivery Blueprint (Agile)
csilk
0
56
Using Given / When / Then with Cypress
csilk
0
1.3k
Intro To Basic UX Concepts
csilk
0
160
ReactJS For Beginners
csilk
0
120
What is Redux (vs. MVC)
csilk
1
200
Other Decks in Technology
See All in Technology
EarthCopilotに学ぶマルチエージェントオーケストレーション
nakasho
0
270
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4.3k
AgentCore×VPCでの設計パターンn選と勘所
har1101
3
250
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.1k
20年前の「OSS革命」に学ぶ AI時代の生存戦略
samakada
0
320
みんなで作るAWS Tips 100連発 (FinOps編)
schwrzktz
1
280
Master Dataグループ紹介資料
sansan33
PRO
1
4.6k
20260423_執筆の工夫と裏側 技術書の企画から刊行まで / From the planning to the publication of technical book
nash_efp
2
360
2026年、知っておくべき最新 サーバレスTips10選/serverless-10-tips
slsops
13
5.1k
「責任あるAIエージェント」こそ自社で開発しよう!
minorun365
9
1.8k
Amazon S3 Filesについて
yama3133
2
200
AWS DevOps Agentはチームメイトになれるのか?/ Can AWS DevOps Agent become a teammate
kinunori
6
680
Featured
See All Featured
Optimizing for Happiness
mojombo
378
71k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.2k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
110
Navigating Team Friction
lara
192
16k
Accessibility Awareness
sabderemane
0
100
Abbi's Birthday
coloredviolet
2
7k
Documentation Writing (for coders)
carmenintech
77
5.3k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
190
The Spectacular Lies of Maps
axbom
PRO
1
700
Transcript
🛄 VS 📳 NEXT 13 SERVER COMPONENTS Another CodingWithCallum™️ Session
⚡️ lightning talk ⚡️
🛄 SERVER COMPONENT A component that is fetched and rendered
ON THE SERVER
📳 CLIENT COMPONENT A component that is fetched and rendered
ON THE CLIENT
EXAMPLES
None
USING SERVER COMPONENTS 🛄 Only download HTML built by the
server Instant render Speed 🏃♀️💨 + the JS required for the client components (if any) react cached Make direct API calls (server to server)
NOT USING SERVER COMPONENTS 📳 Install all JS Dependencies to
run the site React etc. Then grab all our Client JS Components Then render
WHEN TO USE SERVER 🛄 VS CLIENT 📳 COMPONENTS Need
to access browser related stuff = Client Component Anything Else? = Server Component
None
INTERLEAVING
HOW DO I DEFINE A CLIENT 📳 COMPONENT 'use client';
import { useState } from 'react'; export default function Counter() { const [count, setCount] = useState(0); return ( <div> <p>You clicked {count} times</p> <button onClick={() => setCount(count + 1)}> Click me </button>
</div> );
SHARED COMPONENT 🛄📳 What if something is Server And Client
Wait what?
SHARING DATA FROM 🛄 SERVER TO 📳 CLIENT Make your
API requests on the server Keep as many dependencies on the server as possible Eg. pass i18n translations from server > client to avoid client code (prop drilling in this case is OK)
MUTATING DATA ON THE 📳 CLIENT RPC from the client
This will change Next is working on a RFC on this at the moment We will go with what their suggestion is Watch this space
READ THE DOCS! Next 13 Server And Client Components
None