---
title: "Discussion on \"React with Webpack From Scratch\" | Hashnode"
description: "Discussion on \"React with Webpack From Scratch\". A beginner's deep dive into setting up a webpack build to run React with webpack-dev-server and hot-loading. (React 18 and Webpack 5)"
url: "https://hashnode.com/posts/react-with-webpack-from-scratch/62e81fcb430bd1d04a847eb2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [React with Webpack From Scratch](https://blog.aaron-olsen.com/react-with-webpack-from-scratch?utm_source=hashnode&utm_medium=feed)

A beginner's deep dive into setting up a webpack build to run React with webpack-dev-server and hot-loading. (React 18 and Webpack 5)

Aug 1, 2022 · 15 min read · blog.aaron-olsen.com  
Updated Oct 1, 2022  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#webpack](https://hashnode.com/tag/webpack)

## Written by

[Aaron Olsen](https://hashnode.com/@ThreeSidedCoder)

@ThreeSidedCoder · Denver, CO

  
[View profile](https://hashnode.com/@ThreeSidedCoder)

Just trying to figure it all out... you know?

## Responses 2

Markdown supported · ⌘↵ to post

[Nicolas Barlatier](https://hashnode.com/@NBA)

[Aug 5, 2022](https://hashnode.com/posts/react-with-webpack-from-scratch/62e81fcb430bd1d04a847eb2/comment/62ed55bce3a3793580dfe224)

You said in the first pic we should get:

. ├── src │ ├── index.html │ └── index.js ├── package.json └── webpack.config.js

But it should be

. ├── src │ ├── index.html │ └── index.js ├── package.json

Webpack.config.js is added later on.

[Aaron Olsen](https://hashnode.com/@ThreeSidedCoder)

[Aug 5, 2022](https://hashnode.com/posts/react-with-webpack-from-scratch/62e81fcb430bd1d04a847eb2/comment/62ed55bce3a3793580dfe224#reply-62ed58c1e3a3793580dfe2cc)

Updated

[Nicolas Barlatier](https://hashnode.com/@NBA)

[Aug 3, 2022](https://hashnode.com/posts/react-with-webpack-from-scratch/62e81fcb430bd1d04a847eb2/comment/62ea316616f9480a9dac4eaa)

You said:

> What's been added is the defServer key.

But in the config file, it uses "devServer" instead. Typo ?

Thanks for this good tutorial. It helps us to be able to understand how React was made :)

[Aaron Olsen](https://hashnode.com/@ThreeSidedCoder)

[Aug 5, 2022](https://hashnode.com/posts/react-with-webpack-from-scratch/62e81fcb430bd1d04a847eb2/comment/62ea316616f9480a9dac4eaa#reply-62ed531c1e1353355ad319ab)

Thank you! Updated. I don't have an editor, so I rely heavily on readers to help. Feedback is very much appreciated.
