My issue with new React docs
HTML-код
- Опубликовано: 12 сен 2024
- Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
All the learning resources such as code files, documentations, articles and community discussions are available on our website:
chaicode.com/
You can find our discord link, github link etc on the above website.
Twitter/X link: x.com/hiteshdo...
Discord link: hitesh.ai/discord
Learn React with 10 projects: • Let's learn react from...
Learn Docker: • A practical guide on D...
Learn Kubernetes: • Complete Kubernetes Co...
How does a browser works: • How does a browser wor...
How nodejs works: • How node JS works | En...
Learn Redux-toolkit: • Learn Redux Toolkit in...
Learn NextJS: • Nextjs Full stack course
Learn Typescript: • Why to learn Typescript
Learn Javascript: • Welcome to new JavaScr...
Learn React Native: • React Native Mastery: ...
Learn Zustand: • React state management...
Learn Golang: • How to get started wit...
Totally agree, nice docs but Vite and Parcel should get more room as they are the best way to learn React/JSX after CodeSandbox.
Deploying Next app without using vercel is so so tough, you need to know fairly good amount of clouds things to deploy next app on AWS.
React's shift towards server components can be the reason for their drive towards the use of meta frameworks; however, I completely agree with your point about using React without frameworks for simple projects.
Thank you sir, totally agree.
I might not at all agree with cra but 200% agree with the vite part. Would have been big time saving.
Hi Hitesh Sir, I have a difference of opinion. Shifting to framework is much nice step in my point of view, because one can learn everything in a easy manner.
Secondly, React has to compete with Angular too, so that maybe one of the reason too.
Another one I would say that, for example, we can make whole web application and REST services using Servlets in Java, but going to Spring Boot seams pretty smart choice. So, same way learning pure REACT don't seems good choice, rather, we should learn framework which is cool and production-ready.
Just a difference of opinion, rest I somewhat agree with you. Nice video!!!!!
he agreed upon that, just that vite isnt shown as one of the options.
So, is it the right time to re-welcome Angular ?🙃
I think reason behind would be there main focus now is RSC and RSC pretty much solves most of the problems that we have with the plain vite/parcel template.
Sir what should I do as i just started to learn React. from #codewithharry
Should I continue learn React or directly move to Next JS ?
Mai bhi
Exactly you're right ❤
I totally agree with your points. Thanks for sharing this, I spent quite some time to go through the beta docs, I feel this is one of the best docs & resources to learn react but never checked the installation steps.
We already have separate docs for nextjs, mentioning steps to start a nextjs app in react docs without any steps to start a simple react app doesn’t really make sense. If anyone is interested to learn next or build next app, they can anyway refer to the next's official docs.
It's sad to see that react is moving towards next, advocating for them and some of the members from react team has already joined vercel.
Confused with the installation part as well, and that’s exactly what brought me here.
Not impressed with the docs at all.
exactly that blow my mind when i saw documentation for installation
Totally agreed with your point. Even Big Companies built projects with just core React. Not used NextJs etc.
Absolutely
@@HiteshCodeLab Sir So what should I do I just started to learn React. from #codewithharry as a beginner
Should I continue learn React or directly move to Next JS ? please reply
@@SandipRathod185 that course is old 1 or 1.5 years there is lots of things in that course which is now changed so you should consider more recent ourses
point made.
Hello sir
So what should I do I just started to learn React.
Should I continue learn React or directly move to Next JS ?
All it takes is this line
"npm create vite@latest"
Totally. Makes beginners getting started life easy
Good observation. The test of organic React being diluted...
I agree with you but its still 1000x better than AWS. They launched the v3 JS sdk in Dec 2020 and still the docs isn't completed.
now they are clearly telling us that dont use react without frame works.its going to be challenging for beginners in future
Honestly, I am just starting off with react and still struggling to understand the basic of creating a simple web app with react. Last two days I was just trying to create a simple web app and behold on new website I started seeing frameworks stuffs , I got freaked out and the whole stuff is not beginner friendly...
You are no superior than the React Core team. So chill and relax. They know what they are putting into the docs very well. If someone has a problem, it's his problem, not that the docs are written bad.
lol
React has shifted from being a client side framework to a server side framework with the introduction of suspense..., which cannot be done without the use of meta framework, ie a simple vite react cannot do SSR. This whole thing requires a new approach of thinking which the beta (now new official) docs want you to think about right from the start, which cannot be done if you start with a simple vite react template.
And every one would agree what you start your project with generally sticks for a long time.
And CRA should never be added to the docs cause many beginners (actual beginners) still use CRA which leads them to move backwards with trend of using slower bundler instead of better alternatives.
Great Catch Sir, and yeah everybody who is starting react will face this problems !
Forcing us to use more opiniated frameworks.
totally agree sir
How will we deny your opinion 🙄?
best way to create react app using vite its simple easy and they should mention something about vite on there , and using of a framework for a simple application is kind of overengineering i would say
started react few days back and faced the same prblm. Apart from installation rest is fine but next and all in installation is confusing for a beginner. They should have given at least something about core react too.
Agreed 👍🏻 i thought the same
Yes, I think the reason is related to SEO.
First one please start your devops course agian I’m eagerly waiting for join it please
Totally agreed bro
I learned react with class based components and it cam in handy when learning Angular as both of them were nearly same concept. And now I am obsessed with Class based components because they exactly tell which function is responsible for what and there are less surprises in class based components it also helps me to keep my code clean, I don't know why people don't use Class Based Components that much...
(I was not trying to make the point that we cannot achieve same thing in functional components, but in class based components it's alot easier and fun)
Today i needed to check react docs, was surprised to not see the usual installation commands, thought it was a problem, until I found that several others also have the same issue
I completely disagree. Last year my company had to choose the frontend stack, either React or Angular. And we chose React, because it was 'simpler'. But then we realized that we need state management, routing, forms, animation library, styling solution. So basically we had to invent our own framework.
So react proposed this misconception that it is very easy to pick up, but if you need full site made with react, well basically you need some sort of framework. If we take that to account, react is basically same as Angular.
So this section in docs is VERY HELPFUL. We lost two clients, because we had to rewrite our two apps from CRA to Next, because later client wanted to add SSR, and CRA does not support that at all.
Now we are switching to Angular and very happy with it.
I totally respect your disagreement. My perspective is towards beginners who just want to get started and will end up with NextJS. One should be able to learn react fundamentals like data flow, creating components etc just with pure react.
Why didn't you just use next.js from the beginning?
@@diegoavendanohernandez9908 because I knew nothing about react or Angular, before that I worked 2 years with pure JS html and scss. And it seemed that we don't need fully fledged framework such as Angular or Next, especially if we don't know react.
And that is the main pitfall in which many developers fall. You pick react, because it advertises itself as simple. Yes, react is simple, you won't be able to make a full SPA with it. And when you realize it, it is too late. You either continue and STRUGGLE with that you already learned along the way, trying to patch the wholes about which react does not care(routing forms, ect) or chose dump your knowledge about react-router and how to eject and expand CRA, and switch to Next, which has its own router and architecture.
Now what should i do i was learning react js currently and got to know about this should i cancel all earliest tutorial of react very confuse
I have learn react now what I should learn angular or nextjs
Vercel will be building React in future that's true. FB isnt going to be focusing
so much honesty in one video
Me too was having the same disappointment as soon as I visited the new website.
There was vite and create react app in beta a few days before but now they have removed here
It will be good provide more info in the docs on how to install React using Parcel and Vite. But I don't think this is a major issue because the documentation of Parcel and Vite is very amazing and one will easily understand how to create a React application with these tools.
It’s kinda an issue if I’m in react doc so I should get the react pure experience
Shouldn’t jump to vite as well
Extra confusion I guess
Next is fine, even if you want to build something simple.
Next makes routing and other stuff way too easy and more efficient.
It also ends the need of having a backend for simple cruds, you simply put them directly with the frontend.
Using plain react is no longer the Required way of using it anymore, and it's clear with new docs, and it's from the authors. And they didn't take this decision for no reason.
Thank you sir !!
agree
Can we expect new React tutorial from you
We failed to notice the intentions from the beggining. They lied saying react is a library and that it was easy to move to or integrate and we believed (Dirty software marketing). React has always been a framework they are just simplifing the use of it now. Welcome to the real react face with no lies.
Same happened with java 8 and the streams. The intentions were not to simplify or enable developers with new tools. The mere intention was to keep the runtime competing in a wolrd of horizontal scalling. They don't really care about us just the market.
exactly same thought as yours
I couldn’t agree more and I said it on twitter… it makes no sense to not mention vite
same thought
Nextjs is cool i liked it
Indeed, should have still kept create react app as last last resort.
I don't think so. Vite is 1000x better. Give it a shot and you will know
Edit: I am talking about "Vue" but "Vite". They are different
@@MaxProgramming actually, i have two websites hosted on hostinger because I didn't know much about hosting that time and the shared hosting offered by them doesn't support many languages. We can write plain react but I am not sure about vite or vue (probably no). Although, all of my other projects are on vercel.
Can we still update react dependencies? But if it's all deprecated, updating any dependencies would be pointless.
@@MilindGoel15 React, Vue, etc. are just simple Javascript files (unless Server side rendering is involved). They should all work on any server that supports HTML, CSS, and JS. You can use any of the tools, like Vite, Webpack, etc., to build your project and deploy the build folder, and that's it.
@@MilindGoel15 Vite in simple words is a faster and much better alternative to CRA. If you just try out Vite using npm create vite. You will notice how powerful it is.
Also I think it's a lot better to simply switch from CRA to Vite now. All you have to do is copy paste the components AND use the same deps as in CRA
@@MaxProgramming I just tried vite and its really a game changer. the final build went from 10mb to 700kb.
Mostly people who is advertising c++ as a cp language they didn't work very well in market they just pass out from reputated
college and started c++ playlist and cp cp cp barking everywhere and created controversy rather then explain that we can also do Development in c++ 😅😅
next is not good for microservice
Yeah, first time when I saw vite like this I was like seriously?!😑
I liked the video I can't share my POV on that because It's only 1 month for me knowing react I am learning react from past 1 month is anyone can Guide me what I need to do I am very confused from all this new documentation stuff and so much noise about it in the market what is the best optimized way to move forward Hopefully Someone Guide me Thanks Hitesh Sir for making this video ❤
React Server Component is the answer to your issue
True
hmm React wants we should a framework not simple react
I paused the video in the middle and commented all vecel thing going on then watched remaining video and deleted that cmt 🤣
because you r quick :)
I love venila react
create-react-app is dead 🔥
Hey hitesh you are right even i think they should have provided some docs for creating standalone react app using vite or parcel.
I am a react developer and thinking to switch, so which framework to go with in the future Next js or Remix?
👍
❤❤
npm create vite@latest.
Hope people will come to your video for this lol..
first comment
RIP create-react-app
👍