Create A React App Without Create-React-App

Поделиться
HTML-код
  • Опубликовано: 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 Год назад

      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

  • @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).

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

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

  • @KryptechOfficial
    @KryptechOfficial 9 месяцев назад +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!

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

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

  • @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?

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

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

  • @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

  • @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.

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

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

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

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

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

    Brilliantly explained 🔥

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

    Finally 😌❤️🔥

  • @anshumanxda
    @anshumanxda 2 года назад +18

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

    • @edward-soli
      @edward-soli 5 месяцев назад

      Keep it up buddy😂😂😂

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

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

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

    ty so much for this, you are a legend!

  • @pgtips4240
    @pgtips4240 9 месяцев назад +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?

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

    This is so cool!

  • @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

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

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

  • @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 ?

  • @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?

  • @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…?

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

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

  • @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!

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

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

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

    God bless you fam❤️🔥

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

    thanks man!

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

    Great video but how do I incorporate CSS files?

  • @mohammed.haydar
    @mohammed.haydar 2 года назад +2

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

  • @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

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

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

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

    How to make powershell auto-suggestion like this?

  • @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?

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

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

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

    This is the best way to learn webpack.

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

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

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

    Let’s go

  • @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?'

  • @TheRiyam-y23
    @TheRiyam-y23 2 года назад +1

    Cool

  • @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?

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

    i want to know the commands in windows

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

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

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

    Transcendeu 🤯

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

    you forgot to include react refresh...

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

    this is better than cra, cause is more understandable

  • @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!

  • @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

  • @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