diff --git a/04-frameworks/01-react/03-react-hooks/00-boilerplate/.babelrc b/04-frameworks/01-react/03-react-hooks/00-boilerplate/.babelrc
deleted file mode 100644
index 469d3d55f..000000000
--- a/04-frameworks/01-react/03-react-hooks/00-boilerplate/.babelrc
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "presets": [
- "@babel/preset-env",
- "@babel/preset-typescript",
- "@babel/preset-react"
- ]
-}
diff --git a/04-frameworks/01-react/03-react-hooks/00-boilerplate/Readme.md b/04-frameworks/01-react/03-react-hooks/00-boilerplate/Readme.md
index 1afae0061..441e05ada 100644
--- a/04-frameworks/01-react/03-react-hooks/00-boilerplate/Readme.md
+++ b/04-frameworks/01-react/03-react-hooks/00-boilerplate/Readme.md
@@ -1,125 +1,16 @@
-# 03 Webpack React
+# 02 Vite boiler plate - React
## Summary
-This example takes the _02-webpack-boiler_ example as a starting point.
-
-We will go step by step adding the necessary configuration so that we integrate
-**React** into our build process.
-
-# Step by Step guide
-
-- First we copy the previous example, and do a _npm install_
-
-```bash
-npm install
-```
-
-- Let's install _react_ and _react-dom_
-
-```bash
-npm install react react-dom --save
-```
-
-- Let's install _react_ and _react-dom_ typings
-
-```bash
-npm install @types/react @types/react-dom --save-dev
-```
-
-This way we have the React library and the bindings to integrate with a web browser.
-
-- In the index.html we are going to put the _div_ that will serve as entry point to instantiate our React application. our React application.
-
-_./src/index.html_
-
-```diff
-
--
diff --git a/04-frameworks/01-react/03-react-hooks/05-component-update-render/src/index.html b/04-frameworks/01-react/03-react-hooks/05-component-update-render/src/index.html
deleted file mode 100644
index a3d74b719..000000000
--- a/04-frameworks/01-react/03-react-hooks/05-component-update-render/src/index.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
My App Example
-
-
-
-
-
diff --git a/04-frameworks/01-react/03-react-hooks/05-component-update-render/tsconfig.json b/04-frameworks/01-react/03-react-hooks/05-component-update-render/tsconfig.json
index 3312b5f1e..a057cea1d 100644
--- a/04-frameworks/01-react/03-react-hooks/05-component-update-render/tsconfig.json
+++ b/04-frameworks/01-react/03-react-hooks/05-component-update-render/tsconfig.json
@@ -1,18 +1,19 @@
{
"compilerOptions": {
- "target": "es6",
- "module": "es6",
- "moduleResolution": "node",
- "declaration": false,
+ "esModuleInterop": true,
+ "isolatedModules": true,
+ "jsx": "react-jsx",
+ "lib": ["ESNext", "DOM"],
+ "module": "ESNext",
+ "moduleResolution": "bundler",
+ "noEmit": true,
"noImplicitAny": false,
- "allowSyntheticDefaultImports": true,
- "sourceMap": true,
- "jsx": "react",
- "noLib": false,
- "suppressImplicitAnyIndexErrors": true,
+ "noImplicitReturns": true,
+ "resolveJsonModule": true,
"skipLibCheck": true,
- "esModuleInterop": true
+ "sourceMap": true,
+ "target": "ESNext",
+ "useDefineForClassFields": true
},
- "include": ["src/**/*"],
- "exclude": ["node_modules"]
+ "include": ["src"]
}
diff --git a/04-frameworks/01-react/03-react-hooks/05-component-update-render/vite.config.ts b/04-frameworks/01-react/03-react-hooks/05-component-update-render/vite.config.ts
new file mode 100644
index 000000000..a0024d88e
--- /dev/null
+++ b/04-frameworks/01-react/03-react-hooks/05-component-update-render/vite.config.ts
@@ -0,0 +1,7 @@
+import { defineConfig } from "vite";
+import checker from "vite-plugin-checker";
+import react from "@vitejs/plugin-react";
+
+export default defineConfig({
+ plugins: [checker({ typescript: true }), react()],
+});
diff --git a/04-frameworks/01-react/03-react-hooks/05-component-update-render/webpack.config.js b/04-frameworks/01-react/03-react-hooks/05-component-update-render/webpack.config.js
deleted file mode 100644
index 326060f82..000000000
--- a/04-frameworks/01-react/03-react-hooks/05-component-update-render/webpack.config.js
+++ /dev/null
@@ -1,54 +0,0 @@
-const HtmlWebpackPlugin = require("html-webpack-plugin");
-const path = require("path");
-const basePath = __dirname;
-
-module.exports = {
- context: path.join(basePath, "src"),
- resolve: {
- extensions: [".js", ".ts", ".tsx"],
- },
- entry: {
- app: ["./index.tsx", "./styles.css"],
- },
- devtool: "eval-source-map",
- stats: "errors-only",
- output: {
- filename: "[name].[chunkhash].js",
- },
- module: {
- rules: [
- {
- test: /\.tsx?$/,
- exclude: /node_modules/,
- loader: "babel-loader",
- },
- {
- test: /\.(png|jpg)$/,
- type: "asset/resource",
- },
- {
- test: /\.html$/,
- loader: "html-loader",
- },
- {
- test: /\.css$/,
- exclude: /node_modules/,
- use: [
- {
- loader: "style-loader",
- },
- {
- loader: "css-loader",
- },
- ],
- },
- ],
- },
- plugins: [
- //Generate index.html in /dist => https://github.com/ampedandwired/html-webpack-plugin
- new HtmlWebpackPlugin({
- filename: "index.html", //Name of file in ./dist/
- template: "index.html", //Name of template in ./src
- }),
- ],
-};