ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Create A React App Without Create-React-App

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 เม.ย. 2022
  • How to create a react application without using the create-react-app command.
    Code: github.com/machadop1407/react...
    Join our Discord: / discord
    🚀 Learn ReactJS By Building 6 Projects: codedamn.com/learn/reactjs-pr...
    🐙 GraphQL Course: codedamn.com/learn/graphql-fo...
    ► Buy Crypto on Coinbase: coinbase-consumer.sjv.io/PedroTech
    Social
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Website: machadopedro.com
    Linkedin: / machadop1407
    Instagram: / _pedro.machado_
    Github: github.com/machadop1407
    Business Email: pedro@pedrotech.co
    Tags:
    - ReactJS Tutorial
    - ReactJS and MySQL
    - NodeJS Tutorial
    - API Tutorial
    #reactjs #programming

ความคิดเห็น • 77

  • @adarsh-chakraborty
    @adarsh-chakraborty 2 ปีที่แล้ว +43

    Now i appreciate CRA even more 😐

    • @weirddev
      @weirddev 2 ปีที่แล้ว +13

      Start using vite, you will hate cra more

    • @weirddev
      @weirddev 2 ปีที่แล้ว +5

      @Sadik.H no 😐

    • @mohanrajmuthukumaran8513
      @mohanrajmuthukumaran8513 2 ปีที่แล้ว

      CRA will also left u with some vulnerable packages too 🙃

    • @belvss896
      @belvss896 ปีที่แล้ว

      Don't use CRA.

    • @sahilyadav3782
      @sahilyadav3782 ปีที่แล้ว

      @@weirddev I'm really confused why do we not see Vite nearly as much as CRA, like, it's pretty simple and so much faster

  • @anshumanxda
    @anshumanxda 2 ปีที่แล้ว +18

    I did without create react app, i did with vite🤣

    • @edward-soli
      @edward-soli 5 หลายเดือนก่อน

      Keep it up buddy😂😂😂

  • @ninel-valentin
    @ninel-valentin ปีที่แล้ว +1

    Google sent me to your video. It helped a lot. Even as a begginer I have understood everything and I loved it! It is right what I needed for my project! Cheers!

  • @nehat786
    @nehat786 2 ปีที่แล้ว

    I was confused with this but you clear it out everything. Thanks

  • @gooddogreallygooddog6157
    @gooddogreallygooddog6157 2 ปีที่แล้ว +1

    i have been searching for this exact video for the past week

  • @882caio
    @882caio 2 ปีที่แล้ว +14

    Fala Pedrão!!! Excelente vídeo continua assim que seu canal vai crescer cada vez mais (Tenho certeza que você é BR).

    • @PedroTechnologies
      @PedroTechnologies  2 ปีที่แล้ว +4

      Obrigado Caio! Sou br sim kkkkkk

    • @mikaio
      @mikaio 2 ปีที่แล้ว

      Preciso em

  • @cortarelva
    @cortarelva 2 ปีที่แล้ว +2

    "The thing that takes the most amount of time is understanding everything"!
    Aint that true!

  • @JD-sn1lr
    @JD-sn1lr 2 ปีที่แล้ว +5

    When I ran the app, I got an error "Can't resolve './index.js' in C:\Development\React
    eact-from-scratch". I modified the webpack.config.js entry: "./index.js" to entry: "./src/index.js" and that fixed the error.

  • @valeriousmonk654
    @valeriousmonk654 2 ปีที่แล้ว

    Great video! Thank you! Interesting to see same with snowpack ))

  • @djoezi3662
    @djoezi3662 ปีที่แล้ว

    Amazing! Thanks a lot man, you are doing best!

  • @samueltadesse2158
    @samueltadesse2158 ปีที่แล้ว

    Thank you so much CRA was not working for me for a week no matter what i did. truly a godsend.

  • @pgtips4240
    @pgtips4240 10 หลายเดือนก่อน +1

    I have done several tutorials on React and a lot of them fail for different reasons but his one has worked completely. I feel I have learned a tonne about how react hangs together. Also having the source on git helps immensely.
    The only thing I had to do differently was in the webpack.config.js I had to also set entry: "./src/index.js" as it wasn't finding the index.js file. I don't know why it was different for you?

  • @zaidali1107
    @zaidali1107 2 ปีที่แล้ว +3

    Brilliantly explained 🔥

  • @devstuff92
    @devstuff92 2 ปีที่แล้ว

    New sub, love your videos already! Can you make a tutorial on how we can implement audio sound effects(for example onclick or any other events) using react? I would appreciate it

  • @KryptechOfficial
    @KryptechOfficial 10 หลายเดือนก่อน +1

    Thanks a lot!! But it seems like you forgot to add all of the Babel-related packages into the description like you said you would, so that would be a great addition!

  • @TarekFaham
    @TarekFaham ปีที่แล้ว

    Fantastic tutorial! How you can develop parts of the application features using this method and integrate it with an existing application that is based on angularjs? For example, there are a lot of forns which are build using a designer of some kind. I can insert an HTML component and add the script tag to reference the script main.js. But how to render the correct section when the specific form is active?

  • @CoderDmitri
    @CoderDmitri ปีที่แล้ว

    ty so much for this, you are a legend!

  • @siddheshshirawale4575
    @siddheshshirawale4575 2 ปีที่แล้ว

    I like your videos. Your videos are very helpful. If possible make video on next js + rich text editor .

  • @lucasa8710
    @lucasa8710 2 ปีที่แล้ว

    parabens mano, pelo vídeo e pelo seu ingles, muito bom

  • @daniel7007
    @daniel7007 2 ปีที่แล้ว

    GReat video!
    Bro where did u find all buble dependencies?

  • @anithadharaneedharan6758
    @anithadharaneedharan6758 3 หลายเดือนก่อน

    Thanks a tonne for the video, saved my day

  • @WitOfGray
    @WitOfGray 2 ปีที่แล้ว

    God bless you fam❤️🔥

  • @Messi2Inno
    @Messi2Inno 2 ปีที่แล้ว +1

    Hey! Pedro, you mind doing a video with golang as backend and react as frontend with SQL database??

  • @ThColinPereira
    @ThColinPereira 2 ปีที่แล้ว +1

    This is so cool!

  • @bopon4090
    @bopon4090 2 ปีที่แล้ว

    This is the best way to learn webpack.

  • @wziro65
    @wziro65 2 ปีที่แล้ว

    thanks man!

  • @mirkafarkasova2425
    @mirkafarkasova2425 3 หลายเดือนก่อน

    Great video man, as always. I am just having some issues. Like for example, the console is flooded with Source map errors. Any idea why?

  • @zlatkoiliev8927
    @zlatkoiliev8927 ปีที่แล้ว

    Please create one tutorial with typescript and styled components! Please! :)

  • @edwardhandrich6043
    @edwardhandrich6043 2 ปีที่แล้ว

    I wish I could like this video twice. I have a new interview question, "can you create a react app, without running create-react-app?'

  • @MrFuma-fr8no
    @MrFuma-fr8no 2 ปีที่แล้ว +1

    Hey PedoTech, love your channel. Your React Router video is *chef's kiss*.
    I have been scouring the web for this answer but to no avail. In React, should I use js or jsx at the file extension? Is there any difference to it? I would love your input! Obrigado!

    • @PedroTechnologies
      @PedroTechnologies  2 ปีที่แล้ว

      Thank you! There is no difference between them! It is purely for organization. In my prev company they used jsx for react components and js for normal files

    • @MrFuma-fr8no
      @MrFuma-fr8no 2 ปีที่แล้ว

      @@PedroTechnologies Thank you! I am a beginner in Web Dev. When you say normal files, are we talking about JS files with only regular JS in it? And as soon as you mix HTML and JS it should be jsx, right?

    • @theawes0me0ne
      @theawes0me0ne 2 ปีที่แล้ว +1

      @@MrFuma-fr8no ive seen people do exactly this yes

    • @internetexplorer7880
      @internetexplorer7880 2 ปีที่แล้ว

      When you suffix your files with .jsx, you get autocompletion for html tags which you don't get when you suffix it with .js

  • @kalahari8295
    @kalahari8295 2 ปีที่แล้ว +1

    Finally 😌❤️🔥

  • @L8rCloud
    @L8rCloud ปีที่แล้ว +1

    In your “rules:” your RegEx statement only tests for the .js OR .jsx extension YET you also have the .json and .tx extensions listed.
    Shouldn’t they ALSO be added to your RegEx statement for testing…?

  • @sashaikevich
    @sashaikevich 2 ปีที่แล้ว +2

    I'm happy to follow you along, but where do you get your info? (
    I'm thinking for when one of the packages ultimately changes, where can I get the latest presets config, without hoping you'll post a timely video) Thanks!

    • @PedroTechnologies
      @PedroTechnologies  2 ปีที่แล้ว +2

      I follow the react team on twitter and I always check the react subreddit!

    • @sashaikevich
      @sashaikevich 2 ปีที่แล้ว

      @@PedroTechnologies gotcha, thanks. See you on teh subreddits then!

  • @azumatomlinson3474
    @azumatomlinson3474 2 ปีที่แล้ว +2

    my css didn't work properly, I had to add this under rules in webpack.config.js
    {
    test: /\.css$/i,
    use: ["style-loader", "css-loader"],
    },
    and also install these dependencies:
    npm install --save-dev style-loader css-loader

  • @dmytronice1337
    @dmytronice1337 2 ปีที่แล้ว

    Starting from React 17, you don't need to Import React for using JSX syntax in files. So how we can do it with webpack ?

  • @shashwattulsyan8522
    @shashwattulsyan8522 2 ปีที่แล้ว

    can you please make a separate tutorial for how to store fields and files in mongdb(MERN).

  • @SaptarshiMajumdar
    @SaptarshiMajumdar ปีที่แล้ว

    Great video but how do I incorporate CSS files?

  • @timothydoan2
    @timothydoan2 2 ปีที่แล้ว +1

    Please make a vid on real time chat app with react and firebase. Like a discord clone.

  • @mohammed.haydar
    @mohammed.haydar 2 ปีที่แล้ว +2

    Would love to know how u got auto-completion in your bash terminal?

  • @AllNaturale11
    @AllNaturale11 ปีที่แล้ว

    This isnt working for me. When i run npm build I get an error in ./src/index.js and that the module build failed. I also have an error that says ./index.js cant but resolved. What can I do to fix it?

  • @aleatennu383
    @aleatennu383 ปีที่แล้ว

    Is it possible to reuse all this in another react project?

  • @imchiennb
    @imchiennb 2 ปีที่แล้ว

    How to make powershell auto-suggestion like this?

  • @efemenaekagha3406
    @efemenaekagha3406 2 ปีที่แล้ว

    I ran into an error saying field browser doesn't contain an alias configuration

  • @hichamabh6280
    @hichamabh6280 9 หลายเดือนก่อน

    this is better than cra, cause is more understandable

  • @Katoph
    @Katoph 2 ปีที่แล้ว +1

    Let’s go

  • @contrav8349
    @contrav8349 ปีที่แล้ว

    i want to know the commands in windows

  • @rmaheshchalke
    @rmaheshchalke 2 ปีที่แล้ว

    @PedroTech
    I am not able to run your project, it showing error e.g. 'webpack-dev-server' is not recognized as an internal or external command,

    • @rmaheshchalke
      @rmaheshchalke 2 ปีที่แล้ว

      Sorry, i have deleted existing node modules folder and i have installed again and it is started working but still with react 18.2.0 it is not working, is there any other solution?

  • @randerins
    @randerins 2 ปีที่แล้ว

    Transcendeu 🤯

  • @TheRiyam-y23
    @TheRiyam-y23 2 ปีที่แล้ว +1

    Cool

  • @CoderDmitri
    @CoderDmitri ปีที่แล้ว

    also, you need to do: npm i react react-dom --save-dev to install react, otherwise does NOT work

  • @k4qdex
    @k4qdex 2 ปีที่แล้ว

    you forgot to include react refresh...

  • @faris.abuali
    @faris.abuali 2 ปีที่แล้ว

    🤦🏻😢
    Thanks Pedro!

  • @ahmadgazzz
    @ahmadgazzz 6 หลายเดือนก่อน +1

    Now create a react app without using react

  • @imonw3b
    @imonw3b 2 ปีที่แล้ว

    I think, you forgot to add .gitignore and put /node_modules so it won't be push on github. Anyway, good tutorial!

  • @CoderDmitri
    @CoderDmitri ปีที่แล้ว +1

    I was getting CAN NOT resolve MAIN.js error, I solved it with modifying MAIN.JS path in webpack.config.js, so it is now: filename: "./public/main.js", as oppose to "main.js" ... it works now

  • @nimitindrasoni
    @nimitindrasoni ปีที่แล้ว

    showint error
    :( \learnings
    eact-corpsite
    ode_modules\webpack-dev-server\lib\servers\WebsocketServer.js:10
    static heartbeatInterval = 1000;
    npm ERR! code ELIFECYCLE
    npm ERR! errno 2
    npm ERR! react-corpsite@1.0.0 start: `webpack-dev-server .`
    npm ERR! Exit status 2
    npm ERR!
    npm ERR! Failed at the react-corpsite@1.0.0 start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    npm ERR! A complete log of this run can be found in:

  • @coffee-is-power
    @coffee-is-power ปีที่แล้ว

    Don't use cra, it's outdated, use vite instead, it's much faster and has much better DX