Тёмный

Stop Doing These Next.js Mistakes 

CoderOne
Подписаться 109 тыс.
Просмотров 8 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@olicoding
@olicoding 9 месяцев назад
great tip on the parenthesis for the directory structure, will check it out. Also the layout for each, sounds interesting. Thanks for sharing!
@michakrecisz5100
@michakrecisz5100 9 месяцев назад
works good if use vercel or any other service that use Edge. Cost are pretty high. In place where I work, we are runnig 35-70 EC2 machines to host our service, cost for using and all transformations are huge. Nextjs is pretty slow, and in the use a lot resources to handle Images, also if you have multiple intances you will have problems with caching this image (cache is a state in the end). To be honest as more I use nextjs more i thing that nextjs is not a good solution for enterprise software.
@anggiebratadinata7263
@anggiebratadinata7263 6 месяцев назад
Using is not always the best because it will tax your server's CPU. It may not be an issue if your app/site has only a handful of images but if you have hundreds or thousands of images, you can expect higher bills. Especially, if you don't use Vercel to host it. :)
@StemLG
@StemLG 9 месяцев назад
quick tip, you don't have to specify height and width with an imported image in the component
@captainnoyaux
@captainnoyaux 9 месяцев назад
Why ? It's automatically set ? What is the behaviour on loading, does it load prefilling the image dimensions or does it change after loading (which is bad practice )?
@AmirMirkamali
@AmirMirkamali 8 месяцев назад
Can you please tell me which extension do you use for folding tags props?
@marnhtetzan7503
@marnhtetzan7503 5 месяцев назад
it's tailwind fold plugin for vscode. It can hide messy tailwindcss utility classes
@aymenbachiri-yh2hd
@aymenbachiri-yh2hd 5 месяцев назад
Thank You
@1mt4y
@1mt4y 9 месяцев назад
In error #03, "Leaving Routes without validation," I'm curious whether this could potentially pose a security risk. Revealing less about our API functionality might enhance security by limiting information available to potential hackers. Thoughts on considering this aspect for a more robust security stance?
@hubertmbitor7017
@hubertmbitor7017 9 месяцев назад
Do server components wrapped in a client component become client components?
@sumitsahu8657
@sumitsahu8657 9 месяцев назад
No!
@SAsquirtle
@SAsquirtle 9 месяцев назад
nope, but you cannot directly define a server component inside the return statement of a client component. Instead you have to pass it in as children (eg: and render it as {children} inside the client component
@Frontend-Ninja
@Frontend-Ninja 9 месяцев назад
I would like to request a timestamps, so i can focus on what really interests me ;)
@CoderOne
@CoderOne 9 месяцев назад
They are right in the description. I'm wondering why RU-vid is not showing the timestamps on the video track
@0xAndy
@0xAndy 9 месяцев назад
For the separation of client/server components section, could you put the uncontrolled form in a server component and handle the onSubmit in a client component?
@CoderOne
@CoderOne 9 месяцев назад
You can't do it that way, cause the onSubmit event handler has to be attached to the element, so it must be a client component. Otherwise, server actions can be used in here but the main part of why we are using a client component is not about onSubmit, it is more about the state handling and displaying that uploaded image.
@nikako1889
@nikako1889 9 месяцев назад
can't we use actions for form and make it server component as well?
@CoderOne
@CoderOne 9 месяцев назад
But when you need to manage state or events inside the component, it can only be a client component.
@jayf.k2497
@jayf.k2497 9 месяцев назад
What’s the name of the extension that displays the size of the line of code… I mean the (gzipped stuff)can anybody help?
@PanosPitsi
@PanosPitsi 9 месяцев назад
Import cost
@jayf.k2497
@jayf.k2497 9 месяцев назад
Thanks 🙏
@cynicusme9007
@cynicusme9007 8 месяцев назад
I hate to be the which Vscode theme are you using guy!! It sucks! but .... which vscode theme are you using?
@alexdin1565
@alexdin1565 9 месяцев назад
first time i see your channel first like and first subscribe please can you make a video on how we can paginate in Next.js
@ariell121
@ariell121 9 месяцев назад
Stop using Next.js
@xelhuajosephcoronaperez3531
@xelhuajosephcoronaperez3531 9 месяцев назад
And you recommend? I'm waiting for solid 1.0
@Chaima-lx1nb
@Chaima-lx1nb 6 месяцев назад
❤❤❤❤❤❤❤❤❤❤❤
@im7254
@im7254 9 месяцев назад
if you doing anything server side, you are a bad dev
@PanosPitsi
@PanosPitsi 9 месяцев назад
Spoken like a true reactionary dev 🥶
@im7254
@im7254 9 месяцев назад
@@PanosPitsi innerHTML dev. I don't need a library to draw html. and my html doesn't reload every time I update a variable for no reason. there is zero reason to have a server for almost every use case
Далее
10 CSS PRO Tips and Tricks you NEED to know
9:00
Просмотров 69 тыс.
Физика пасты Карбонара 🧪🔬
00:57
Китайка и Красивые Глаза😂😆
00:20
Китайка и Пчелке Холодно😂😆
00:21
How is this Website so fast!?
13:39
Просмотров 584 тыс.
Don't Make These Next.js Mistakes
13:01
Просмотров 23 тыс.
React Native just dropped a MASSIVE update
15:06
Просмотров 36 тыс.
Claude has taken control of my computer...
4:37
Просмотров 818 тыс.
10 common mistakes with the Next.js App Router
20:37
Просмотров 223 тыс.
All 17 React Best Practices (IMPORTANT!)
1:46:11
Просмотров 175 тыс.
The React Interview Questions You need to Know
21:29
Просмотров 40 тыс.