A New Way to Write React

  Рет қаралды 33,651

Josh tried coding

Josh tried coding

2 ай бұрын

Yeah, you can write React using CSS now. But should you? This highly experimental package generates valid, type-safe React code from CSS files and, in doing so, encourages a very specific style of coding not everybody will like.
-- my links
newletter: www.joshtriedcoding.com/
discord: / discord
github: github.com/joschan21

Пікірлер: 143
@joshtriedcoding
@joshtriedcoding 2 ай бұрын
who wants to start developing NextCSS with me
@ShubhamShubham-gg9fj
@ShubhamShubham-gg9fj 2 ай бұрын
Up for this 👍
@ekchills6948
@ekchills6948 2 ай бұрын
Mee
@labhamjain3915
@labhamjain3915 2 ай бұрын
2 days from now : "Introducing Astro.css" build full stack app just using css
@user-el9tg4tu6v
@user-el9tg4tu6v 2 ай бұрын
mee
@ayanahmad4
@ayanahmad4 2 ай бұрын
I'll be glad to be part of this 😊
@sagarchavan5894
@sagarchavan5894 2 ай бұрын
A solution to a problem which at first place never exist.
@chibuzoekwue
@chibuzoekwue 2 ай бұрын
Exactly 👍
@brayancuenca6925
@brayancuenca6925 2 ай бұрын
well it’s cool to know it’s possible
@winfredj9820
@winfredj9820 2 ай бұрын
moved to svelte. life has been better
@EmmanuelOdii80
@EmmanuelOdii80 2 ай бұрын
Agreed.
@BradySie-wo6vf
@BradySie-wo6vf 2 ай бұрын
no lol this is actually so useful. imagine the conditionals you'd need otherwise with tailwindmerge etc etc and having to conditional all the variants, this approach makes things much cleaner 100%
@CoolPupGaming
@CoolPupGaming 2 ай бұрын
React is a meme framework now
@21abdullah89
@21abdullah89 2 ай бұрын
Yeah pretty much
@joshtriedcoding
@joshtriedcoding 2 ай бұрын
hahaha yes and i love it
@CoolPupGaming
@CoolPupGaming 2 ай бұрын
@@joshtriedcoding what are your thoughts on angular? 🤔
@TheSnHIMshow
@TheSnHIMshow 2 ай бұрын
JS is a meme lang 😀😀
@te20ja04
@te20ja04 2 ай бұрын
Haha😂
@WarSTRIKER1299
@WarSTRIKER1299 2 ай бұрын
"I'm a full stack css developer" "You mean TS or JS, right?" "You heard me correctly"
@sicario55
@sicario55 2 ай бұрын
bruh
@atmosph
@atmosph 2 ай бұрын
can't wait to see when we'll be able to create full-stack apps using only css
@rod6722
@rod6722 2 ай бұрын
I'd rather have a SQL front-end powered by a separate CSS back-end.
@StabilDEV
@StabilDEV 2 ай бұрын
Styled Postgres as a templating language is a MUST
@BarisPalabiyik
@BarisPalabiyik 2 ай бұрын
I am probably not going to use this ever lol. But I love the options and creativity in our field.
@tvwithtiffani
@tvwithtiffani 2 ай бұрын
Same. But seems like an easy way to get a language model or chatgpt to generate react components, after giving it a few examples. Think AI
@BarisPalabiyik
@BarisPalabiyik 2 ай бұрын
@@tvwithtiffani yeah but it's pretty unorthodox, so it wouldn't be suitable for big production projects where you aim for the broad talent pool in the industry.
@unzoid
@unzoid 2 ай бұрын
rico, reset the timer.
@azekeprofit
@azekeprofit 2 ай бұрын
They best chance to integrate business logic directly inside CSS is using calc() expressions I now want to see it happen
@ganeshkale9665
@ganeshkale9665 2 ай бұрын
first i think it's new so devin not get it but, then i realize devin can go through the documentation
@OneShore
@OneShore 2 ай бұрын
What makes you think devin didn't come up with MistCSS?
@wavyboyjodii
@wavyboyjodii 2 ай бұрын
😂😂😂
@ganeshkale9665
@ganeshkale9665 2 ай бұрын
@@OneShore I think devin will forgive us,but he will not
@muhendisim
@muhendisim 2 ай бұрын
@user-jz4iz2qh9u
@user-jz4iz2qh9u 2 ай бұрын
I like it. I love writing CSS and this binds the code to the style which is pretty neat.
@gabrielbianchi2246
@gabrielbianchi2246 2 ай бұрын
I’m thinking it’s crazy you took this seriously Josh😂
@wlockuz4467
@wlockuz4467 2 ай бұрын
I did not expect a silly framework like this to promote Container/Presenter pattern which is actually a solid pattern.
@bongbuincyril6150
@bongbuincyril6150 2 ай бұрын
Devin is waiting for u guys
@JakobRossner-qj1wo
@JakobRossner-qj1wo 2 ай бұрын
I still dont understand why you want this seperation of concerns. 😅 You are using Tailwind and React. Wouldn't something like Angular be better for this seperation of concerns?
@paglagamer8871
@paglagamer8871 2 ай бұрын
Next make a framework that can Build APIs with CSS only, Node.css
@cedi2929
@cedi2929 2 ай бұрын
Does that mean we write Next with SCSS?
@wlockuz4467
@wlockuz4467 2 ай бұрын
Never let JS devs cook.
@Luxcium
@Luxcium 2 ай бұрын
I can never watch those video without having the strong illusion that Josh is my friend and that I know him like in real life... Is it just me or anyone else have that strong impression that he is such a friendly person... Maybe I am just silly or something weird...
@thepaintedsock
@thepaintedsock 2 ай бұрын
Interesting way to generate boilerplate typescript components quickly. Though I prefer to write css without a compiler to test on multiple browsers because nothing else is quicker than raw html and css templating. Once a layout is well tested then it cam be used in react land or other framework of choice.
@ruggeddog3103
@ruggeddog3103 2 ай бұрын
hell noo
@geralt36
@geralt36 2 ай бұрын
Exactly my reaction to this.
@genka14
@genka14 2 ай бұрын
Thought it was a joke at first, but actually quite cool
@AbhiShake-pl3cf
@AbhiShake-pl3cf 2 ай бұрын
I dont think i feel good having 2 files for same thing in the same places. Its like those initial transpilation old days where we had ts and transpiled js in the same place
@ahmedyarkhan7006
@ahmedyarkhan7006 2 ай бұрын
hey josh try mint with framer motion
@thecodeinn
@thecodeinn 2 ай бұрын
What problem does this solve??
@hoxtygen
@hoxtygen 2 ай бұрын
Don't worry, it's about to be created.
@PJlikePajamas
@PJlikePajamas 2 ай бұрын
Pretty cool, I think I like the concept better than the application of the idea.
@CoryTheSimmons
@CoryTheSimmons 2 ай бұрын
These comments are the same people who laughed at Atomic.CSS (which went on to HEAVILY inspire Tailwind). Mist looks really interesting. One of the pain points of making React components are style variants... It just gets really messy. Mist seems to solve that. I think CVA might do this better.
@TheGryphon14
@TheGryphon14 2 ай бұрын
What's wrong with writing an actual react code?
@wavyboyjodii
@wavyboyjodii 2 ай бұрын
I had to check if it was April 1st 😂
@irfansaeedkhan7242
@irfansaeedkhan7242 2 ай бұрын
its just over complicating things, its not a solution to any problem
@TheSnHIMshow
@TheSnHIMshow 2 ай бұрын
Smaller git repos 🤣🤣
@Nab_001
@Nab_001 2 ай бұрын
" People's creativity never stops "
@mjerez6029
@mjerez6029 2 ай бұрын
Ok, I'm moving to React now
@ashishsharma__
@ashishsharma__ 2 ай бұрын
It's interesting approach but I'm not sure I'm going to ever use it😂
@theyreMineralsMarie
@theyreMineralsMarie 2 ай бұрын
This is actually not that bad. It just adds class names to components and generates types. If you style your react components using basic css and the className prop then this is really no different.
@labhamjain3915
@labhamjain3915 2 ай бұрын
CVA already does it and it's better in my opinion than this
@theyreMineralsMarie
@theyreMineralsMarie 2 ай бұрын
@@labhamjain3915 you're right, CVA is better. This "MistCSS" project is just an interesting alternative that simply shows the flexibility of JS/Typescript.
@merveillevaneck5906
@merveillevaneck5906 2 ай бұрын
"perfect" DX but i have to fix imports manually 😂 all jokes aside tho this is not a bad take, but definitely needs a lot more tooling around it in order to be viable for a dev team to use
@Smartercow
@Smartercow 2 ай бұрын
It's too much unnecessary files. Seems cool tho if you want to separate css logic especially when using tailwind css but .module.css does accomplish with one less file
@baldcoder_
@baldcoder_ 2 ай бұрын
Nope. Tailwind is still a better option for reusable components. This specifically solves a problem that Styled Components created. But there are other (better) options out there that don't have Styled Components issues and don't need you to write a file, generate another file, and keep your eye on the import path.
@ibrahimmohammed3484
@ibrahimmohammed3484 2 ай бұрын
now i've seen everything
@igorskyflyer
@igorskyflyer 2 ай бұрын
Next framework: bring PHP into a React component
@eduardo_assuncao
@eduardo_assuncao 2 ай бұрын
Ow my gosh! The future is here 🤯
@coreydevs
@coreydevs 2 ай бұрын
ima head out
@wizz1e80
@wizz1e80 2 ай бұрын
Why ?
@buddy.abc123
@buddy.abc123 2 ай бұрын
People are looking for problems that aren't there. We are nearing the singularity
@nattawodsatee4068
@nattawodsatee4068 2 ай бұрын
If it’s gonna generate the component for you. At least it should generate forwardRef instead of pray to new React to stop complaining about passing ref into function.
@KrishnaJha25
@KrishnaJha25 2 ай бұрын
Damnnn!! ❤
@OneShore
@OneShore 2 ай бұрын
Seems about right if you're already down the React rabbit hole.
@BradySie-wo6vf
@BradySie-wo6vf 2 ай бұрын
no but why is this actually so useful for creating generic components tho
@ziyadtaleb
@ziyadtaleb 2 ай бұрын
But why ?
@griffadev
@griffadev 2 ай бұрын
What an absolute travesty i hope this is a meme package
@joe-robin
@joe-robin 2 ай бұрын
why ?
@81NARY
@81NARY 2 ай бұрын
Nahh, who let the bro cook 😂
@nanoadam415
@nanoadam415 2 ай бұрын
Is it only me or did anyone else think we were writing full on React logic in CSS
@kelvinsmith4894
@kelvinsmith4894 2 ай бұрын
Honestly I don't like it
@julianklumpers
@julianklumpers 2 ай бұрын
One thing that is missing, is "AI"....... :P
@turbdonkey
@turbdonkey 2 ай бұрын
I don't see the point. I would have to learn a new way to write code which doesn't have any benefits that I can tell.
@MyCodingDiarie
@MyCodingDiarie 2 ай бұрын
You're changing lives with your content. Keep inspiring!
@joe_j
@joe_j 2 ай бұрын
Why don't you use windows 11?
@joe_j
@joe_j 2 ай бұрын
So far at 4:50 I feel that so many steps to take to accomplish a very simple thing
@joe_j
@joe_j 2 ай бұрын
Why dont they make one that reduces the number of files
@idanmasas
@idanmasas 2 ай бұрын
Why tho
@coolemur976
@coolemur976 2 ай бұрын
Nah. In smal projects it's just too much hustle. And in big projects you just can't trust every developer to follow rules. There will always be someone who adds business logic into these generated files then removes .mist from file. And now you will have two patterns in same project which will be a headache to maintain.
@Kay8B
@Kay8B 2 ай бұрын
Ill stick to class-variance-authority and creating my own components. This seems abit..... ermmm redundant, gimmicky.
@salihyil2
@salihyil2 2 ай бұрын
@RhythmRift74
@RhythmRift74 2 ай бұрын
very interesting but will never use that
@rumble1925
@rumble1925 2 ай бұрын
Nope still is a bad idea. The biggest problem with styled components (besides CSS in JS) is naming and having a bunch of extra wrapper components. I don't see how this approach avoids this. CSS is good. Actually it's great, especially in 2024.
@arxci9402
@arxci9402 2 ай бұрын
Okay, but why?
@muhendisim
@muhendisim 2 ай бұрын
I'll not use but still it's interesting.
@seroltech118
@seroltech118 2 ай бұрын
honestly this should stop. Everyday we have a new lib/framework that solves a "problem" that doesn't exists, and then a new lib/framework will come up to solve a problem of the previous lib. And it's the same pattern over and over. If you think that import a css file is tiring : Stop coding
@shazam314
@shazam314 2 ай бұрын
We have to create problems for job security.
@arthur_snow
@arthur_snow 2 ай бұрын
thats cool, i guess
@cannotthinkofanybetterhandle
@cannotthinkofanybetterhandle 2 ай бұрын
Why tho? 😂
@devdhaif
@devdhaif 2 ай бұрын
You guys can't be serious, right ?
@zalaam_0
@zalaam_0 2 ай бұрын
I hate writing designing and it is nightmare for me
@TooCoolForBZ
@TooCoolForBZ 2 ай бұрын
The css and js has gone out of hands lmao what is this. cute idea tho
@SabarMohamed
@SabarMohamed 2 ай бұрын
Full stack css dev 😂
@edhahaz
@edhahaz 2 ай бұрын
"use server"
@senshawb
@senshawb 2 ай бұрын
This is Banana😂
@beta82
@beta82 2 ай бұрын
why tho 😂
@asadsalehumar1011
@asadsalehumar1011 2 ай бұрын
I don't think it has any usecases other than being funny
@ant.nguyen1994
@ant.nguyen1994 2 ай бұрын
biggest NOPE ever
@eliav3
@eliav3 2 ай бұрын
Dislike. Don't begin with click baits This is not a new way writing your react components. Just yet another css framework
@ibrahimmohammed3484
@ibrahimmohammed3484 2 ай бұрын
i like it, simple and easy to build UI library with
@anasouardini
@anasouardini 2 ай бұрын
I can only imagine how ugly CSS files can get! LOL
@kazmi401
@kazmi401 2 ай бұрын
Honestly. It's just bullshit. I am Never gonna use it in my life.
@snerketryne
@snerketryne 2 ай бұрын
Haha react is a trainwreck
@yassinesafraoui
@yassinesafraoui 2 ай бұрын
🤨🤨🤨
@MrAlao675
@MrAlao675 2 ай бұрын
These solutions here and there aren't good for beginners.
@lycan2494
@lycan2494 2 ай бұрын
at this point ur just making gimmick videos. its ridiculous
@matteokinkela
@matteokinkela 2 ай бұрын
Hell no!
@WingStopUS
@WingStopUS 2 ай бұрын
😂😂😂 WTF
@Zagoorland
@Zagoorland 2 ай бұрын
Thanks, I hate it
@froxx93
@froxx93 2 ай бұрын
Thanks, I hate it! :)
@Anacmb
@Anacmb Ай бұрын
Just no.
@Michael-Martell
@Michael-Martell 2 ай бұрын
Nope nope nope nope nope nope
@abdarker1043
@abdarker1043 2 ай бұрын
well i don't like it
@gubatenkov
@gubatenkov 2 ай бұрын
weired stuff
@robertm4934
@robertm4934 2 ай бұрын
Okay.. this is outright stupid
@HardGas911
@HardGas911 2 ай бұрын
This is a terrible idea
@theSuitCat
@theSuitCat 2 ай бұрын
A very nice useless framework
2 ай бұрын
I hate this.
@jeremydudet
@jeremydudet 4 күн бұрын
this sounds dumb
@2gbeh
@2gbeh Ай бұрын
😵‍💫 absolutely useless
@knoraziel
@knoraziel 2 ай бұрын
🤮
We Need to Talk About Redis.
14:55
Josh tried coding
Рет қаралды 87 М.
Never Forget React forwardRef Again
9:33
Coding in Public
Рет қаралды 12 М.
ISSEI funny story😂😂😂Strange World | Magic Lips💋
00:36
ISSEI / いっせい
Рет қаралды 193 МЛН
BRUSH ONE’S TEETH WITH A CARDBOARD TOOTHBRUSH!#asmr
00:35
HAYATAKU はやたく
Рет қаралды 34 МЛН
Eccentric clown jack #short #angel #clown
00:33
Super Beauty team
Рет қаралды 19 МЛН
This is the Only Right Way to Write React clean-code - SOLID
18:23
The Problem With UUIDs
6:36
Josh tried coding
Рет қаралды 67 М.
Finally Fix Your Issues With JS/React Memory Management 😤
20:13
Jack Herrington
Рет қаралды 79 М.
From React To HTMX
40:01
ThePrimeTime
Рет қаралды 293 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 144 М.
Every React 19 Feature Explained in 8 Minutes
7:35
Code Bootcamp
Рет қаралды 103 М.
My Favorite Update in a Long Time
10:08
Josh tried coding
Рет қаралды 30 М.
3 Tips To Write Clean Code (from an ex-Google software engineer)
17:12
Clément Mihailescu
Рет қаралды 189 М.
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,5 МЛН
Nokia 3310 versus Red Hot Ball
0:37
PressTube
Рет қаралды 3,6 МЛН
AMD больше не конкурент для Intel
0:57
ITMania - Сборка ПК
Рет қаралды 494 М.
What’s your charging level??
0:14
Татьяна Дука
Рет қаралды 7 МЛН
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 2,3 МЛН
iPhone 15 Pro vs Samsung s24🤣 #shorts
0:10
Tech Tonics
Рет қаралды 9 МЛН