Build and Deploy a Modern Next.js 14 Application | React, Next JS 14, TypeScript, Tailwind CSS

Build and Deploy a Modern Next.js 14 Application | React, Next JS 14, TypeScript, Tailwind CSS

JavaScript Mastery

1 год назад

667,619 Просмотров

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


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

Shakhawath Hossain Shatu
Shakhawath Hossain Shatu - 17.09.2023 12:06

use this for scroll top automatic
router.push(newPathname, { scroll: false })

Ответить
Ankit Bisen
Ankit Bisen - 15.09.2023 14:25

In server side rendering part searchParams is not working and its value is always undefined why it is so.

Ответить
Mohamed Saeed
Mohamed Saeed - 15.09.2023 12:07

Hello, I keep seeing this error when passing { newSearchParams } to Home at server-side rendering why is that ?

Ответить
Николай Малышко
Николай Малышко - 13.09.2023 11:29

What is this extension that tells you what code you are going to write next?

Ответить
Александр
Александр - 12.09.2023 16:36

router.push(newPathName, {scroll: false}) Disable scroll to top

Ответить
MUHAMMAD SALMAN AL FARISI
MUHAMMAD SALMAN AL FARISI - 10.09.2023 11:12

That's the best javascript project that I've everseen

I get a trouble that i can't run custom filter properly

Ответить
ThantZin
ThantZin - 09.09.2023 22:30

Please upload more type script tutorials videos sir.

Ответить
Heggern !
Heggern ! - 07.09.2023 17:11

For some reason when i start up my project and my search is only localhost:3000 then no cars gets shown on the website. it says Oops, no result. But when I switch the search to something specific like BMW m8 then it shows all the m8 cars. Do anyone know what the problem could be?

Ответить
gt1990
gt1990 - 07.09.2023 06:19

yes typescript!

Ответить
Salman Saleem
Salman Saleem - 05.09.2023 12:58

We intrested in TypeScript

Ответить
SpacyLion Studio
SpacyLion Studio - 04.09.2023 23:08

wen channel rebrranding to () => TypeScript Master? :3

Ответить
Denis Velevski
Denis Velevski - 04.09.2023 10:01

TS > JS

Ответить
Akshit Gupta
Akshit Gupta - 03.09.2023 18:19

Thankyou Adrian this project is so knowledgabale. I cannot thankyou enough man.

Ответить
Ngampus Online
Ngampus Online - 01.09.2023 18:01

best tutorial ever! It just 3 hours, but I finished all in three days. Many thanks Adrian!

Ответить
DOMO KNOWS
DOMO KNOWS - 01.09.2023 05:57

anyone having issues with tailwind styles being applied? I notice that the custom @apply classnames are working but not the tailwind classes I'm adding directly into the className of the component (e.g. making the button blue on minute 25 isn't working but adding those same styles into globals.css into a class with apply is working) EDIT: I use a src folder so I had to amend the tailwind config file

Ответить
Madhu Babu
Madhu Babu - 31.08.2023 06:55

I'm getting below error
./app/globals.css:20:3
Syntax error: /Users/madhu/Desktop/works/carsshowcase/app/globals.css The `sm:` class does not exist. If `sm:` is a custom class, make sure it is defined within a `@layer` directive.

18 |
19 | .padding-x {
> 20 | @apply sm: px-16 px-6;
| ^
21 | }
22 |

Ответить
Alex Enache
Alex Enache - 30.08.2023 14:55

We want more Typescript projects! This is why I didn't attend the course that you have done for Next.Js

Ответить
Karim
Karim - 29.08.2023 23:53

wonderful video thanks a lot, for the issue of scrolling to the top you can keep it server side rendering and add to the router.push a property of { scroll: false } which is gonna look smg like that : router.push(newPathname, { scroll: false }); that would solve it without needing to move back to the client side rendering enjoy guys

Ответить
Affiliate Paid
Affiliate Paid - 28.08.2023 16:59

You are a God my man.... You have taught me REACT.....today I am earning through React....I respect you my LORD

Ответить
funnynews
funnynews - 27.08.2023 12:10

nice

Ответить
Arthur Bicalho
Arthur Bicalho - 26.08.2023 21:32

More TypeScript videos

Ответить
Saswat Mishra
Saswat Mishra - 26.08.2023 21:03

I like typescript.

Ответить
Akash Patil
Akash Patil - 26.08.2023 20:07

Typescript is great

Ответить
Ayxan Nematov
Ayxan Nematov - 25.08.2023 19:54

for scrolling problem by router.push or Link from next you can use {scroll:false} as second parameter on these.

Ответить
Jack
Jack - 25.08.2023 03:59

nice!

Ответить
Aman Bagri
Aman Bagri - 24.08.2023 13:50

if u r student u can not buy and learn this project without money as all image are paid

Ответить
Kamil Václavek
Kamil Václavek - 24.08.2023 01:54

Damn, my tailwind.confing file is "ts", not "js". How do I solve that?

Ответить
Tomas Burian
Tomas Burian - 24.08.2023 00:15

Next.js is great, we use it at work for all our React-based projects and it saves so much time and effort, lets us work quite efficently.
The only thing I find disturbing as of late is that a lot of tutorials teach with Tailwind, which isn't as commonly used in the business. Luckily a dev who has at least some work experience is able to substitute with his preferred framework instead.

Ответить
Osunlana Jesutofunmi
Osunlana Jesutofunmi - 23.08.2023 22:42

Hi Adrian, thanks so much for this. Please what extension do you use for your autocomplete

Ответить
CW
CW - 21.08.2023 15:22

five minutes in and your still talking about YOU. I am gone.

Ответить
Yo K
Yo K - 21.08.2023 14:12

These watermarks look so much better... f ck

Ответить
Rachid BADINI
Rachid BADINI - 21.08.2023 13:02

It would be good to have a course about how to design APIs like a pro with authentication, permissions, etc

Ответить
Ordinary GG
Ordinary GG - 20.08.2023 17:24

Wait 6 month then try to update packages xDDDD

Ответить
Dirty South
Dirty South - 20.08.2023 14:26

its not possible to register for a free trial account anymore on the imagin website, has anybody successfully registered on there in the past few days??

Ответить
Rachid BADINI
Rachid BADINI - 19.08.2023 20:47

Dude uses autocompletion to create components but really manually imports "useState" lmao

Ответить
Naglaa Fouz
Naglaa Fouz - 19.08.2023 20:27

realy thanks alot

Ответить
Wiktor Szydłowski
Wiktor Szydłowski - 18.08.2023 13:19

Hi! Why you did not select ESLint on initialising next.js app?

Ответить
Bro
Bro - 18.08.2023 13:09

Amazing content. (Next + Tailwind + TypeScript) = I'm here from the first to the last minute.

Ответить
Takurus
Takurus - 18.08.2023 12:42

where is next/image ... i do not have that file

Ответить
Yo K
Yo K - 16.08.2023 12:53

How I love this "copy this, download this" type of bullshit... Yes, of course, who the fuck needs styling anyway

Ответить
Mehrose Qazi
Mehrose Qazi - 16.08.2023 11:50

i am getting this error while creating car specs in rapid api
(Error: Element type is invalid. Received a promise that resolves to: [object Promise]. Lazy element type must resolve to a class or function)

Ответить
Sehdev Singh Ahluwalia
Sehdev Singh Ahluwalia - 16.08.2023 08:12

i am getting Error: Passing props on "Fragment"!

The current component <Transition.Child /> is rendering a "Fragment".
However we need to passthrough the following props:
- ref (This error on SearchManufacturer.tsx file) below is the code kindly let me know what is wrong i have tried everything.

"use client";
import Image from "next/image";
import { Combobox, Transition } from "@headlessui/react";
import { SearchManufacturerProps } from '@/types'
import { Fragment, useState } from 'react'
import {manufacturers} from '@/constants';

const SearchManufacturer = ({manufacturer, setManufacturer}: SearchManufacturerProps) => {
const [query, setQuery] = useState("");
const filteredManufacturers =
query === ""
? manufacturers
: manufacturers.filter((item) => (
item.toLowerCase()
.replace(/\s+/g, "")
.includes(query.toLowerCase().replace(/\s+/g, "")
)))

return (

<div className='search-manufacturer'>
<Combobox value={manufacturer} onChange={setManufacturer}>
<div className='relative w-full'>
{/* Button for the combobox. Click on the icon to see the complete dropdown */}
<Combobox.Button className='absolute top-[14px]'>
<Image
src='/car-logo.svg'
width={20}
height={20}
className='ml-4'
alt='car logo'
/>
</Combobox.Button>

{/* Input field for searching */}
<Combobox.Input
className='search-manufacturer__input'
placeholder='Volkswagen'
displayValue={(manufacturer: string) => manufacturer}
onChange={(e) => setQuery(e.target.value)} // Update the search query when the input changes

/>

{/* Transition for displaying the options */}
<Transition
as={Fragment}
leave="transition ease-in duration-100"
leaveFrom='opacity-100'
leaveTo='opacity-0'
afterLeave={() => setQuery("")} // Reset the search query after the transition completes
>
<Combobox.Options>
{filteredManufacturers.length === 0 && query !== "" ? (
<Combobox.Option
value={query}
className='search-manufacturer__option'
>
Create "{query}"
</Combobox.Option>
) : (
filteredManufacturers.map((item) => (
<Combobox.Option
key={item}
className={({ active }) =>
`relative search-manufacturer__option ${
active ? "bg-primary-blue text-white" : "text-gray-900"
}`
}
value={item}
>
</Combobox.Option>
)
))}
</Combobox.Options>.
</Transition>
</div>
</Combobox>
</div>

)
}

export default SearchManufacturer

Ответить
Bayu Adi Wibowo
Bayu Adi Wibowo - 15.08.2023 07:12

Hi, this is really helpful and good explanation, may I know what did you use for the autocomplete code/script from you video ? did you use Github autopilot x or something?

Ответить
Mini_Toons
Mini_Toons - 14.08.2023 16:48

is the api key working now?

Ответить
Anton
Anton - 13.08.2023 05:13

so much errors...

Ответить
CW
CW - 13.08.2023 04:44

No thank you.

Ответить
Sanyukta Ingole
Sanyukta Ingole - 11.08.2023 10:04

what about the Sign In page ????.....

Ответить