The "create react app" of Val Town

  Рет қаралды 270

Val Town

Val Town

Ай бұрын

Client-side react in 40 lines, no dependencies (besides react), explained in 10 minutes
In the remaining 17 minutes i add ssr + client hydration
I am just a boy, standing in front of react, asking it to render on the server and the client
www.val.town/v/stevekrouse/re...

Пікірлер: 5
@iamanishkumar
@iamanishkumar 13 күн бұрын
val town is really really really great. I really cannot apprecite how much you gyus are providing for free.
@stevekrouse
@stevekrouse 7 күн бұрын
@roguesherlock
@roguesherlock 26 күн бұрын
this is really cool! What I don't understand is how come browser doesn't throw a syntax error when loading the script. I believe browsers don't support jsx and it's technically part of javascript so shouldn't it throw syntax errors?
@ValDotTown
@ValDotTown 25 күн бұрын
Thanks! Excellent question. We detect that the user agent making the request is a browser and returned transpiled javascript that can run in a browser. I try to explain that part here: kzbin.info/www/bejne/fqrLpICaZah1pM0feature=shared&t=411 Here's a demo of the behavior: www.val.town/v/stevekrouse/esmTownTranspileDemo
@roguesherlock
@roguesherlock 25 күн бұрын
@@ValDotTown that makes sense. Initially I thought so too but I got confused cause if you directly load the file than it returns a text response (text/jsx). But looking at network tab now it does look like it returns a transpiled version when loaded from a script tag. I didn't know you could detect that. That's pretty neat actually!
Server Components in React (Simple Tutorial)
25:27
Cosden Solutions
Рет қаралды 15 М.
We Built an App in 24 Hours [No Code]
11:56
Raw Startup
Рет қаралды 417 М.
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 10 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,3 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 23 МЛН
The Story of Next.js
12:13
uidotdev
Рет қаралды 559 М.
💥 Angular SSR Deep Dive (With Client HYDRATION) #angular
24:56
Angular University
Рет қаралды 15 М.
React Server Components vs Client Components
27:31
Piyush Garg
Рет қаралды 21 М.
$25,000 vs. $25,000,000
29:58
Johnny Harris
Рет қаралды 1,6 МЛН
WTF Do These Even Mean
13:44
Web Dev Simplified
Рет қаралды 80 М.
Build A Full Stack Chatbot in Rust (feat. Leptos & Rustformers)
43:40
Code to the Moon
Рет қаралды 151 М.
Create React App vs. NextJS vs. Vite
15:40
PedroTech
Рет қаралды 69 М.
STOP Watching Coding Tutorials Right Now! My LEARNING FRAMEWORK
12:19
Harkirat Singh
Рет қаралды 244 М.
Toothbrush Glove Hack !?
0:16
Dental Digest
Рет қаралды 8 МЛН
Фильм про побег от родителей
0:59
Holy Baam
Рет қаралды 3,1 МЛН