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
Callum Silcock
March 09, 2023
Technology
0
190
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
Tweet
Share
More Decks by Callum Silcock
See All by Callum Silcock
Unlocking Lockfiles - A Developers Guide to Package Management
csilk
0
57
Attacking the Frontend
csilk
0
180
Advanced Testing concepts
csilk
0
250
Automating Design Review with Visual Regression
csilk
0
380
🎟 Tech Delivery Blueprint (Agile)
csilk
0
45
Using Given / When / Then with Cypress
csilk
0
1.3k
Intro To Basic UX Concepts
csilk
0
150
ReactJS For Beginners
csilk
0
100
What is Redux (vs. MVC)
csilk
1
180
Other Decks in Technology
See All in Technology
VCC 2025 Write-up
bata_24
0
180
20201008_ファインディ_品質意識を育てる役目は人かAIか___2_.pdf
findy_eventslides
2
550
ZOZOのAI活用実践〜社内基盤からサービス応用まで〜
zozotech
PRO
0
210
オープンソースでどこまでできる?フォーマル検証チャレンジ
msyksphinz
0
110
カンファレンスに託児サポートがあるということ / Having Childcare Support at Conferences
nobu09
1
370
Adapty_東京AI祭ハッカソン2025ピッチスライド
shinoyamada
0
170
Why React!?? Next.jsそしてReactを改めてイチから選ぶ
ypresto
10
4.5k
AWSにおけるTrend Vision Oneの効果について
shimak
0
140
いま注目しているデータエンジニアリングの論点
ikkimiyazaki
0
620
Why Governance Matters: The Key to Reducing Risk Without Slowing Down
sarahjwells
0
120
OCI Network Firewall 概要
oracle4engineer
PRO
1
7.8k
スタートアップにおけるこれからの「データ整備」
shomaekawa
1
300
Featured
See All Featured
Making Projects Easy
brettharned
119
6.4k
The Power of CSS Pseudo Elements
geoffreycrofte
79
6k
Documentation Writing (for coders)
carmenintech
75
5k
KATA
mclloyd
32
15k
How to train your dragon (web standard)
notwaldorf
96
6.3k
Building a Modern Day E-commerce SEO Strategy
aleyda
43
7.7k
Embracing the Ebb and Flow
colly
88
4.8k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Code Reviewing Like a Champion
maltzj
525
40k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.7k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
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