How NextJS REALLY Works

How NextJS REALLY Works

Theo - t3․gg

1 год назад

136,540 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@FernandoJaramillo-jw7nm
@FernandoJaramillo-jw7nm - 18.01.2024 21:07

Very nice explanation, Thank you...!

Ответить
@henrmota
@henrmota - 26.11.2023 01:51

You should do the same for the new version....

Ответить
@vishalsangole836
@vishalsangole836 - 07.11.2023 15:57

I don't think nextjs is normal react app, you are still serving html pages on every subsequent request from server not from browser.

Ответить
@vishalsangole836
@vishalsangole836 - 07.11.2023 15:42

so react is still shipped to client huh

Ответить
@victorbrown3155
@victorbrown3155 - 12.10.2023 00:17

We really need this for app router as well. Especially how navigation works!

Ответить
@AsheAve
@AsheAve - 06.10.2023 20:28

Nice explanation. Thank you.

Ответить
@KevinOfSteel
@KevinOfSteel - 23.09.2023 14:39

Great explanation! Just not gonna ask any questions to avoid being outright stupid.

Ответить
@read-the-docs
@read-the-docs - 16.09.2023 21:44

Next also has some caching mechanisms that can be good or bad. You don't get that with a regular Vite React SPA.

Ответить
@muss-raff5477
@muss-raff5477 - 15.09.2023 03:13

Either I'm too dumb for cs,Web dev, ,programming 😢 or that this video is for newbies with next cause i didn't get nothing worth watching 26 min of saying next give correct html and react give blank page at first load .

Im i correct 🙁 or did i miss the point wtf🤕🤕

Ответить
@luisllaboj
@luisllaboj - 06.09.2023 10:36

I've been learnig NEXTjs for almost a week reading the Pages Router docs, and there's something that still doesn't make sense in my head.... When a page that was rendered on the server gets to the client as a Loading state or as an UI skeleton, does that mean that the server have a "correct" but empty HTML version of what the user gets after the client fetches and loads the data? Only then the user gets the 2nd correct but complete version of the same HTML page?
Idk if that's clear enough, hopefully it is..

Ответить
@AntimaterieGame
@AntimaterieGame - 05.09.2023 16:48

I love how when he tries to demonstrate on twitch how it shows the empty page he can't even get a bad user experience with throttling xD
Shows you how unnecessary and overengineering SSR is

Ответить
@robgioeli
@robgioeli - 05.09.2023 00:30

The intro music and clip-of-content before the explanation video starts is gold. You should start doing this again.

Ответить
@sumitwadhwa8823
@sumitwadhwa8823 - 29.07.2023 20:44

life's too short for all this BS. I'm going back to laravel.

Ответить
@ragnarlothbrook8117
@ragnarlothbrook8117 - 20.07.2023 19:14

awesome video! Thanks 👍🏻

Ответить
@mrxcreamy10
@mrxcreamy10 - 07.07.2023 07:13

What does React Native do with expo?

Ответить
@justinasbei
@justinasbei - 16.06.2023 08:08

Over-explained

Ответить
@elhaambasheerch7058
@elhaambasheerch7058 - 05.06.2023 07:08

Great video! You just earned a sub theo.

Ответить
@cameronratliff8441
@cameronratliff8441 - 02.06.2023 16:01

we have nest js backend and are looking to move to next js on the front end (from CRA). Server components seem really cool and powerful, but I am trying to wrap my head around how they can be used with an API and without bypassing guards. Any tips?

Ответить
@johndoyle3816
@johndoyle3816 - 27.05.2023 12:32

sick painting

Ответить
@user-ge2vc3rl1n
@user-ge2vc3rl1n - 23.05.2023 23:50

How do you learn stuff like this? I know I learned it from you but how do you find resources to learn things like this.
Some apps like Next have documentation that is extremely insightful but nowhere in the React docs would I have learned how react actually works.

Ответить
@guillermoquiros2402
@guillermoquiros2402 - 11.05.2023 22:05

Just Great!

Ответить
@MrJgracias
@MrJgracias - 03.05.2023 19:38

Many newer developers are running in development. Local host and all that, personally I have made a call to local storage in dev mode, and the program works fine. Will that not work in production?

Ответить
@bradtramel9467
@bradtramel9467 - 02.05.2023 01:04

jesus christ... I finally understand

Ответить
@bryanngen5572
@bryanngen5572 - 28.04.2023 15:58

i watched this video when it first came out and again last night. got much more out of it after getting my hands dirty with Next
great video

Ответить
@i-am-the-slime
@i-am-the-slime - 27.04.2023 09:47

Would've been nice if you had explained how Nextjs works like with bundle splitting etc.

Ответить
@DennisHorn1981
@DennisHorn1981 - 19.04.2023 12:19

This is absolutely important background-knowledge! Fantastic explanation! Thank you! 😀👍

Ответить
@mike110111
@mike110111 - 19.04.2023 07:52

I'm confused - I've been following along with your T3 Stack Tutorial (I'm up to the part where we show user details in each tweet) and the page is definitely hydrating on load, the initial HTML is just a skeleton... Which seems to contradict what this video is saying?

Ответить
@jcs184
@jcs184 - 14.04.2023 20:50

You missed an important thing. Call of `getInitialProps` in _document.js file. Also <NextScript> <Main> etc are very important if you want to provide details on how REALLY works.

Ответить
@lightninginmyhands4878
@lightninginmyhands4878 - 13.04.2023 21:06

React = interactive sites

Next = HTML correct for sites as soon as they load

Ответить
@momenwadood1342
@momenwadood1342 - 18.03.2023 19:09

What about "how Next 13 ACTUALLY WORKS ?"

Ответить
@notfadeaway6617
@notfadeaway6617 - 11.03.2023 07:43

Why some people still use firestore on SSR? What are the benefits?

Ответить
@oscardasilva971
@oscardasilva971 - 09.03.2023 09:28

Valuable content, thank you

Ответить
@mohamedhassenetetbirt6841
@mohamedhassenetetbirt6841 - 27.02.2023 09:43

Amazing work, helped me fix small confusions

Ответить
@MrStanley85
@MrStanley85 - 25.02.2023 15:49

I had a hard laugh on "servers dont have windows because they run linux" :D excited about t3 stack

Ответить
@tuktuk9004
@tuktuk9004 - 23.02.2023 00:58

great explanation

Ответить
@danielli3288
@danielli3288 - 16.02.2023 11:00

lol they deprecated twitter card preview. fucking elon

Ответить
@OhDevBeard
@OhDevBeard - 05.02.2023 03:16

Hey Theo, video on upgrading T3 app to use the app directory update of nextjs next? Why? Just because!

Ответить
@evanfossier5654
@evanfossier5654 - 12.12.2022 23:22

bro had a 28 minute slow motion meltdown culminating in him telling everyone to leave him alone. gg indeed. didnt even have to look up this dudes linked in profile up to know hes an engineer in san francisco 😂😂😂

Ответить
@techne_
@techne_ - 10.12.2022 19:56

I REALLY need a perfect SEO. I have just dumped NuxtJs which was terrible and I am in love with NextJS. Even tho it will take me a couple of months to rewrite I already see it will be smoother overall.

Ответить
@berkaycirak
@berkaycirak - 06.12.2022 12:29

Thanks for sharing, you have mentioned that when browser requests to next server, next will execute getServerSideProps and then react will use those props. However, we can use getStaticPaths function to serve all dynamic routes pre-rendered HTML in built time. In that case, when a user requests to next server, will next server execute some react or just sending the pre-rendered HTML in built time instead of runtime?

Ответить
@persas1683
@persas1683 - 03.12.2022 12:38

Hi everyone, am I missing a part, or is this video simply explaining that NextJS will take care of the server-side processing through getServerSideProps and return the rendered HTML as a result.

After the HTML has been returned to the client, the next part is entirely in react.

Ответить
@davorinrusevljan6440
@davorinrusevljan6440 - 26.11.2022 03:22

I am still trying to wrap my mind about what happens when page contains components that can not be rendered on server, how does all that gets stitched up. I guess at best there would be holes, or place holders for client side to fill in?

Ответить
@nroose
@nroose - 22.11.2022 23:26

I guess I would say "incomplete" rather than "incorrect" for the initial html.

Ответить
@nroose
@nroose - 22.11.2022 23:24

Next can't do all of the things that can be in "this is next". The server could serve the original page with some parts that are based on cookies, etc.

Ответить
@dipneupane3179
@dipneupane3179 - 20.11.2022 09:08

You explained it so easily. Thanks for the effort.

Ответить
@TheUltimateGeminiHasSurvived
@TheUltimateGeminiHasSurvived - 19.11.2022 19:24

I shared this with my co op student! Can you make the same for Astro?

Ответить
@faizanahmed9304
@faizanahmed9304 - 07.11.2022 08:01

That is a beautiful explanation, thank you, Theo!

Ответить
@gabrielwest2584
@gabrielwest2584 - 04.11.2022 22:50

You dropped this video at the perfect time! My team is starting a new application and we're considering nextjs and this was an awesome introduction :)

Ответить