Code A React Website Tutorial | ReactJS Tutorial For Beginners

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • CODE: github.com/mac...
    LINKS:
    nodejs.org/en/...
    www.npmjs.com/...
    -
    🚀 Learn ReactJS By Building 6 Projects: codedamn.com/l...
    -
    Social
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Website: machadopedro.com
    Twitter: / pedrotech_
    Linkedin: / machadop1407
    Instagram: / _pedro.machado_
    Github: github.com/mac...
    Email: machadop1407@gmail.com
    Equipments I Use:
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    🌟 Algorithm Book To Pass Coding Interviews: amzn.to/2Z2CirS
    🌟 Microphone: amzn.to/2MKAm4V
    🌟 Keyboard: amzn.to/3tvU6ZR
    🌟 HD Webcam: amzn.to/3tMpJPD
    🌟 Room LED Lights: amzn.to/3a5mFGp
    Tags:
    - ReactJS Tutorial
    - ReactJS and MySQL
    - NodeJS Tutorial
    - API Tutorial
    #react #reacttutorial #reactwebsite

Комментарии • 244

  • @manai2683
    @manai2683 2 года назад +270

    A few things have changed. This is for myself but it can help others:
    1. Tutorial is in npm but the code example is in yarn.
    2. Beginning react-route-dom vs6 'Switch' has now become 'Routes'
    3. Route now takes an element property instead of component.

    • @johnnash6078
      @johnnash6078 2 года назад +9

      You re great! I was not getting the Home content. It is ok now!

    • @benjamintan5291
      @benjamintan5291 2 года назад

      Cheers m8

    • @brokeunistudent2474
      @brokeunistudent2474 2 года назад

      thanks so much!

    • @mrag792
      @mrag792 2 года назад +4

      thank you very much. it's terrible that everything is still changing each time on daily basis in a messy way

    • @jsingh7810
      @jsingh7810 2 года назад

      Thanks a lot!! Saved me!

  • @raphaelrodrigues8410
    @raphaelrodrigues8410 2 года назад +78

    for those having troubles with the Switch:

  • @terezaviznerova2561
    @terezaviznerova2561 2 года назад +12

    Thank you so much! Finally! This is the first ReactJS tutorial video I was able to get through and make it to the end.

  • @thedevhacker4608
    @thedevhacker4608 3 года назад +27

    Hi, Pedro I just started watching the tutorial. I have a request can you do a complete tutorial create a website in react and teach CSS as well in the same video so it all makes sense and to do that together

    • @HrissW
      @HrissW Год назад

      Exactly! MF is not writing CSS, It made it so hard to follow. That's what I hate about this MF

  • @AbhishekMishra-gr5zk
    @AbhishekMishra-gr5zk Год назад +1

    Its been a long time since I am learing React JS but Today after watching this tutorial I can surely say that I have learnt something very meaningful things.😍😍

  • @LiminalPup
    @LiminalPup 7 месяцев назад

    Thank you so much for this tutorial!!! It took a couple of days and going through the comments to note some minor changes -- including one night where I lost my entire repo and had no way of getting it back... but I did it! This video is extremely clear-cut. It's long, but it's well worth it. Pedrotech, I'm learning more from you in just the last few weeks I've been watching your videos than I did in twelve weeks in a dev bootcamp!

  • @guilhermemoutinho6705
    @guilhermemoutinho6705 2 года назад +1

    Caralho maluco, o mano é brazuca, só fui perceber em 1h de vídeo quando ele fala. Poha Inglês perfeito, valeu pelo tutorial maninho.

  • @shimazara
    @shimazara 2 года назад +7

    Thank you very much pedro! you know how to explain react better than anyone else. I wish you could do a short introduction to each element of CSS that you used in your code and its relation with Navbar. Thank you again.

  • @the9263
    @the9263 Год назад +2

    by far the best tutorial of react. Thanks a lot for the details (e.g the 2 dots when describing the path to import t he image.)

  • @MrFyce
    @MrFyce 3 года назад +16

    Another video idea is using google maps api or any another map APIs, using a api call with data of latitudes and longitude, generate a position on the map of the user, I think its interesting use of location data which is not common in react tutorials!

  • @sonnyherrerabasurto6850
    @sonnyherrerabasurto6850 3 года назад +5

    Without doubts, you are incredible Pedro, just wanted to thank you all the effot put on this, keep it going

  • @rogeracevedo2033
    @rogeracevedo2033 Год назад +2

    Dude, this video was perfect! even if its long, it doesnt matter. these videos are super helpful!

  • @tomoyamazaki8867
    @tomoyamazaki8867 2 года назад +3

    thank you for this excellent tutorial sir!! i am a beginner #REACT programmer and i have learnt a lot here about basics . looking forward to apply them at work in the next few weeks!! please keep more #REACT videos coming

  • @dity_0105
    @dity_0105 Год назад

    Just wow..I'm totally a beginner ..But his explanation is too good..Thanks a lot...

  • @SoundousTaleb
    @SoundousTaleb 10 месяцев назад +2

    npm install react-router-dom doesn't work it blocked error watch should i do

  • @viniciusgoddard9304
    @viniciusgoddard9304 Год назад

    Love to hear that you're from Brazil! Couldn't tell just by the accent! Valeu pelo conteúdo irmao kakakak

  • @preetamkurella453
    @preetamkurella453 8 месяцев назад +1

    hey i have followed the same steps and the changes that happened in react and put out this code. but even after saving and reloading the code my react page is still blan on google. i cant see my logo or home heading. is there anything wrong with this code?
    import './App.css';
    import Navbar from './Components/Navbar';
    import Home from './Pages/Home';
    import {BrowserRouter as Router, Route, Routes} from 'react-router-dom';
    function App() {
    return (








    );
    }
    export default App;
    please help!

    • @royzheng4772
      @royzheng4772 8 месяцев назад +1

      same thing here dont know what went wrong

    • @preetamkurella453
      @preetamkurella453 8 месяцев назад

      @@royzheng4772 please give me the solution if you ever find🤧

    • @roxytask985
      @roxytask985 5 месяцев назад

      Same

  • @levyroth
    @levyroth 3 года назад +3

    I know how I'm spending the rest of my holiday now.

    • @PedroTechnologies
      @PedroTechnologies  3 года назад +1

      Hahaha where are you from? I had a holiday this monday so I spent the whole day recording this video

  • @MrFyce
    @MrFyce 3 года назад +9

    Hi! We would like to request for a video tutorial on react sorting on a CRUD table like on a specific column etc,, like this comment so Pedro can see this!

    • @PedroTechnologies
      @PedroTechnologies  3 года назад +3

      Great suggestion! May make a video on a react table library and show an example like the one you said!

    • @MrFyce
      @MrFyce 3 года назад +2

      @@PedroTechnologies yes please! Because I find that most of your videos are on crud but an important concept of sorting is not present! Looking forward! Just subscribed to get notifications to your content!!

    • @f01group63
      @f01group63 3 года назад +2

      @@PedroTechnologies that's actually a great video idea per say, would be even better if its a dynamic table pulling data from mysql.

  • @abdessamade6995
    @abdessamade6995 2 года назад +2

    you're really making react look easier. Thanks for it❤❤

  • @ycantpenguinsfly5011
    @ycantpenguinsfly5011 7 месяцев назад

    Thank you so much for this tutorial. It made it really easy to start and was inclusive of all set up steps. Would absolutely recommend to beginers like me!

  • @michelazariasfeujiognimpie1769
    @michelazariasfeujiognimpie1769 2 года назад +3

    i have a problem on the 4th line '' component={}'' there is and an error

    • @55sathish63
      @55sathish63 Год назад

      update the router dom and then change the switch to routes

    • @chumpenator
      @chumpenator Год назад

      Did you ever figure this out? I still can't get my home screen to appear

  • @tiagobordin6580
    @tiagobordin6580 10 месяцев назад

    I've just finished the video and would like to thank you for the amazing tutorial! 😄
    I hope I can be able to do something so good soon

  • @heyiamigor
    @heyiamigor 3 года назад +1

    Really like the long form of the videos.
    Maybe consider continuing making one very long video creating a project from start to finish, than a series of a lot of smaller videos. That way there are videos for everybody like you want. Thanks for the video !

    • @PedroTechnologies
      @PedroTechnologies  3 года назад +1

      Wow, this comment was caught on youtube's spam for some reason hahaha I agree with you, many times when I do a lot of small videos they usually start getting less and less views with time. I am trying different formats :)

  • @marcelamartins2040
    @marcelamartins2040 2 месяца назад +1

    Thanks for this tutorial, you are a great teacher!

  • @shelly985985
    @shelly985985 29 дней назад

    You helped me to learn React. Thanks

  • @ankitagupta3882
    @ankitagupta3882 2 года назад +3

    Just before 40:52 minutes, while toggling between openLinks and !openLinks,
    once we are hiding the navbar left image and then again expanding the page,
    we are getting home, contacts ,menu and about written twice.
    and it is not resolves further.

    • @55sathish63
      @55sathish63 Год назад

      yeah, I too have same problem!

    • @aanderson6728
      @aanderson6728 Год назад +2

      @@55sathish63 I corrected the issue by doing the following to the Navbar.js component.
      I removed...
      Home
      Menu
      About
      Contact
      What it looks like afterwards....
      function Navbar() {
      const [openLinks, setOpenLiinks] = useState(false)
      const toggleNavbar = () => {
      setOpenLiinks(!openLinks);
      }
      return (


      Home
      Menu
      About
      Contact


      );
      }
      export default Navbar;

    • @brijeshp1878
      @brijeshp1878 Год назад

      @@aanderson6728 sir not getting media query correctly

  • @StevenBrown-me
    @StevenBrown-me 3 года назад +1

    Dude - You have a gift for teaching. Really. Thanks! 👍

  • @Angela-Gee
    @Angela-Gee Год назад +3

    can you make a video with "add-to-cart" functionality and backend connection to this same website?

  • @anubhapant5227
    @anubhapant5227 3 года назад

    Amazing tutorial.. I have watched the full video and learned so many new things..keep bringing such React tutorials.

  • @dougui20
    @dougui20 3 года назад +3

    You did a phenomenal job with this, great explanation

  • @gustavopacifico3080
    @gustavopacifico3080 Год назад

    one of the best tutorials i have ever seen! thanks man, valeu

  • @dante3889
    @dante3889 2 года назад

    Best video for learn ReactJS, i swear

  • @IntrovertWanderlust
    @IntrovertWanderlust 9 месяцев назад

    Thank you a lot Pedro! That's a very useful content, I've learned a lot

  • @hamdiatijani844
    @hamdiatijani844 Год назад +1

    pls how did you access the menuItem class in the menu css?

  • @kristinabondarenko8147
    @kristinabondarenko8147 2 года назад

    It was a pleasure to watch it ! Thanks guys!

  • @thilinarathnayake1796
    @thilinarathnayake1796 4 месяца назад

    Module not found: Error: Can't resolve './pages/Home' in 'D:\web application\Test react app\my-app\src' - Bro i have trouble with this error what are solutions

  • @wahabrehman6848
    @wahabrehman6848 3 года назад +3

    Quality content as always, thank you for your tutorials Pedro

  • @user-tq9qp7ye5o
    @user-tq9qp7ye5o Год назад

    Thank you PedroTech, you make it look easier

  • @CV-ec6mk
    @CV-ec6mk 3 года назад +1

    I liked the content very informative on the react side, you seem to explain everything nicely. The css just needed very minor tuning to be responsive. Good stuff thanks keep posting videos like this :)

  • @ThColinPereira
    @ThColinPereira 3 года назад +2

    Lesgoo! Nice collaborating with you 💥💥

  • @mindy5719
    @mindy5719 2 года назад

    Your channel really helps me a lot. GREAT WORK ! & THANK YOU!

  • @Al_AmeenMD
    @Al_AmeenMD 10 месяцев назад

    Hey Pedro, thank you for this great content. I'd be glad if you Create a CRUD application to allow users from around the world submit their recipes to their preferred category (food type/ingredient/nationality, e.t.c). If the category does not exist, they can create one however, if it does, the user should receive an alert to say it does. Users should also be able to rate recipes (star ratings) and search for recipes that have been submitted. You can go further by including a feature that allows users to add comments to submitted recipes, perhaps a correction or addition. It is an excellent chance to show off your frontend framework skills.

  • @lalit-singh-bisht
    @lalit-singh-bisht Год назад

    finally i can watch your page transitions video

  • @ettorecar9317
    @ettorecar9317 9 месяцев назад +1

    Hi Pedro, does not work. which tag could i use?
    So, comments people were very helpfull. Thank you for all your support.

    • @chadakim1062
      @chadakim1062 9 месяцев назад +1

      instead of switch use Routes

  • @xolanimhlanga7013
    @xolanimhlanga7013 2 года назад

    Hie Pedro, i have been stuck with this error here
    Module not found: Error: Can't resolve './index.css' in 'C:\Users\XLOLANI MHLANGA\Desktop\Front-End\ReactJs\React Websites\website-tutorial\src'

  • @promisemukundu7781
    @promisemukundu7781 2 года назад

    thank you a lot ...just finishes coding along

  • @ShaunOwens
    @ShaunOwens 2 года назад

    After installing the material UI using nom, I get the error 'React' must be in scope when using JSX react/react-in-jsx-scope
    and it says this for line 12-19
    I went back an deleted the material UI import line to see if that was the problem and its still giving me that when I do npm start to preview in a browser. wish I knew what I did wrong here.

  • @naveenbasyal001
    @naveenbasyal001 3 года назад +2

    0 dislikes !! Thats is Really Awesome 😎

    • @PedroTechnologies
      @PedroTechnologies  3 года назад

      Hope you didn't jinx it hahaha Thank you for watching!

  • @daomar3441
    @daomar3441 4 месяца назад

    loved it really helped me. But the css wont apply to the contact page and i cant seem to find any error. If anyone can help me out it'll be highly appericiated

  • @gamingpipe2926
    @gamingpipe2926 Год назад +3

    Hey Pedro! this is valuable content! you helped me a lot. Just something that may sound weird from my side. The toggle button if you resize the screen while the state is open, it stays open and shows two times the links, do you know any possible way to solve this?

    • @prestonbuchanan5449
      @prestonbuchanan5449 Год назад

      I am also having this issue. Were you able to figure out how to fix it? Or does anyone happen to know how to fix this? Thank you!

  • @user-ke9jo8dk2s
    @user-ke9jo8dk2s 2 года назад

    Best author of REACT JS!!!

  • @nidhishettigar6981
    @nidhishettigar6981 2 года назад +1

    I got a bug in you code, In the navbar section on clicking the hamburger menu we get 2 times navigation elements i.e. home, menu, about us, sign in. Can you please suggest changes for that ?

  • @aishwarysharma2919
    @aishwarysharma2919 Год назад

    Does anyone know why when I am clicking on the button the url is updating to the /event but my contents on the page are showing when I refresh the page and not just by clicking on the button. Does anyone know how I can fix that? Please help.

  • @vivekanand5900
    @vivekanand5900 Год назад +1

    Your explanation is awesome. can I get heart from you please

  • @Nikkhil492
    @Nikkhil492 Год назад

    Thank You Pedro, It was a great tutorial. Thanks a lot sir.

  • @ucspriyadharshiniG
    @ucspriyadharshiniG 2 года назад

    i follow ur instruction but after typing in my Navbar.js. i see only blank white screen
    i don't know how to fix this😓

  • @hazelsstory5962
    @hazelsstory5962 Год назад

    Hi i have followed all the steps and yet I’m not getting the outcome and what are we supposed to do with the components under public they are all related to the sample program!

  • @ManojKumar-bu8tq
    @ManojKumar-bu8tq 3 года назад +1

    Can you please make a video on how to get data of react website based on url...because when i refresh or hit the url directly, it is throwing me errors..Thank you in advance
    @PedroTech

  • @MN77553
    @MN77553 Год назад

    Quick question, why did you write id={openLinks ? "open" : "close"} in the leftSide div and not in the hiddenLinks div, as you're only manipulating the links

  • @okoroikenna9053
    @okoroikenna9053 Год назад

    Please dear Pedro or anybody, I have followed every bit of this lesson but my rendering is not displaying especially wihen adding the routes ..please is there a speciall configuration or extensions u use to help

  • @karangovindaraj8844
    @karangovindaraj8844 3 года назад +1

    Like always great work man....also can you show us a website with node implemented with react with session too, i am doing a site here after completing the session and if i try to render or redirect to other pages it doesnt work ...please make a tutorial

  • @ucspriyadharshiniG
    @ucspriyadharshiniG 2 года назад

    i use v5.3.0 react router dom it update the url but didn't render the components in that page
    i don't know why?

  • @aluuusch
    @aluuusch 2 года назад +25

    "Switch" is now "Routes" apparently

    • @Mitnickjr
      @Mitnickjr Год назад

      Yes sir

    • @Tionne.w
      @Tionne.w Год назад +2

      Found out the hard way in a multi page project.

  • @johnnash6078
    @johnnash6078 2 года назад

    Magnificent video! Thanks a lot Pedro!

  • @nidhishettigar6981
    @nidhishettigar6981 2 года назад

    Thank you I learned a lot by this tutorial.

  • @sourdurian2839
    @sourdurian2839 3 года назад +1

    the best tutorial out there imo

  • @taqikhan5418
    @taqikhan5418 3 года назад +1

    Nice way of explaination.Keep going champ😍😍

  • @pratikshamangrulkar70
    @pratikshamangrulkar70 Год назад

    hey i closed the tabs and my pc got restart for some reason how to go back and reopen all of this

  • @youngprogrammer5880
    @youngprogrammer5880 2 года назад +1

    woow it is a very intersting really i don't see the very cool video🔥🔥🔥

  • @abrarfahim64
    @abrarfahim64 2 года назад

    You deserve a LOVE.

  • @pratikshamangrulkar70
    @pratikshamangrulkar70 Год назад

    hey I'm having error in ./src/app.js what should i do

  • @jarred5295
    @jarred5295 2 года назад

    my navbar.css has no effect on the website ui, any tips?

  • @shanhemrom3267
    @shanhemrom3267 Год назад +1

    Hey bro amazing video application looking beautiful and works great. However my home page the image doesnt fit the screen and the footer doesnt fill the page leaving a big blank space i have tried looking at the css but nothing is stretching to fit the whole page any help would be amazing
    Thanks Pedro

    • @thoriumta
      @thoriumta 11 месяцев назад

      same problem

  • @mazidsamsk7700
    @mazidsamsk7700 2 года назад

    Amazing Work bro plz do more projects with javascript also

  • @ovyvintila3909
    @ovyvintila3909 2 года назад

    I have a request to update the video according with the new versions of react-router/react-router-dom. For example Switch is deprecated, and instead you need to use Routes.

  • @joen6209
    @joen6209 4 месяца назад

    Bro learned a lot❤

  • @jackpitts5561
    @jackpitts5561 26 дней назад

    03:20 create a folder and give it a name. I know this is stupidly basic stuff, but better to show creating a new folder in VS Code, rather than just starting accessing a previous one you made-- if this is truly for beginners.

  • @hanifbahari6606
    @hanifbahari6606 2 года назад

    I got this error ( Failed to compile ) after imported the Reorder icon.

  • @gauravawati3886
    @gauravawati3886 Год назад

    Css for navebar image "logo" is not working can anyone help.

  • @selvapriya.Selvam
    @selvapriya.Selvam Год назад

    Great explanation...thank you so much...👍

  • @nishantshah8791
    @nishantshah8791 3 года назад +1

    If u could also do the backend for the same. Great work!

    • @PedroTechnologies
      @PedroTechnologies  3 года назад

      I liked building this, may make a backend website without react for those who don't use react!

  • @marcusrashford568
    @marcusrashford568 Год назад

    My pc can't install the packages to create the react app help

  • @ettorecar9317
    @ettorecar9317 9 месяцев назад

    i got another issue....navbar.css does not work.....

  • @shivanshagnihotri7303
    @shivanshagnihotri7303 Год назад

    I am facing the issue of invalid Hook call any solutions?

  • @flipsiskanal8234
    @flipsiskanal8234 3 года назад

    Could you make a video on how to create a website with React Typescript? Or is it easier with JavaScript?

  • @BlackPowder-Michal
    @BlackPowder-Michal 8 месяцев назад

    npm run build makes not working build. Why?

  • @Madhusudhan0155
    @Madhusudhan0155 3 года назад +1

    You came up with big!

  • @brijeshp1878
    @brijeshp1878 Год назад

    sir media query is not working for me.pls help me anyone

  • @kult99
    @kult99 2 года назад

    thanks for the video, great work. Just some constructive feedback : maybe try to finetune your way of speaking. You say 'uhm' a lot, and you switch between slow and rapid speaking too.
    I probably would do a much worse job so its just some feedback for you to work with!

  • @saidmaroc8448
    @saidmaroc8448 3 года назад

    good work Pedro, thanks

  • @dayadiaz327
    @dayadiaz327 2 года назад +1

    Um br conhece o outro só pela voz né? Kkkkk Depois faz uns tutoriais em português, tá difícil achar um tutorial de react iniciante bom em pt 🥺

    • @yogesh41048
      @yogesh41048 2 года назад

      There is a channel called "coding addict"....see his 10 hour react js video...you will love it... give it a try...
      Friend from 🇮🇳

  • @pamplo7976
    @pamplo7976 Год назад

    Thanks Pedro!!!!!

  • @abhaytiwari6411
    @abhaytiwari6411 3 года назад +1

    One word compliment
    #Supercalifragilisticexpialidocious

  • @saumyasinha3709
    @saumyasinha3709 3 года назад

    Can you show back-end for it so it is fully functional please

  • @sumairimtiaz4545
    @sumairimtiaz4545 Год назад

    Thank you very much sir.

  • @kumaravelrajan
    @kumaravelrajan 2 года назад

    Excellent tutorial !

  • @neilkumar3626
    @neilkumar3626 11 месяцев назад

    liked and subscribed. Amazing tutorial

  • @nyashamusanhu541
    @nyashamusanhu541 3 года назад

    wonderful stuff as always

  • @roxytask985
    @roxytask985 5 месяцев назад

    Seems like it was a good tutorial, sucks that it doesn’t work at all anymore

    • @reyu_
      @reyu_ 3 месяца назад

      why? and how?