Skip to content

Commit

Permalink
Migrate to React
Browse files Browse the repository at this point in the history
Merge pull request #3 from iamwatchdogs/migrate-to-react
  • Loading branch information
iamwatchdogs authored Aug 17, 2024
2 parents ae802e1 + 6456d8f commit 4ec10dd
Show file tree
Hide file tree
Showing 32 changed files with 3,216 additions and 3,145 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
settings: { react: { version: "18.2" } },
plugins: ["react-refresh"],
rules: {
"react/jsx-no-target-blank": "off",
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
"no-unused-vars": ["error", { varsIgnorePattern: "React" }],
"react/prop-types": "warn",
},
};
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white)
![CSS3](https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge&logo=css3&logoColor=white)
![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E)
![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB)
![Webpack](https://img.shields.io/badge/webpack-%238DD6F9.svg?style=for-the-badge&logo=webpack&logoColor=black)
![Babel](https://img.shields.io/badge/Babel-F9DC3e?style=for-the-badge&logo=babel&logoColor=black)
![ESLint](https://img.shields.io/badge/ESLint-4B3263?style=for-the-badge&logo=eslint&logoColor=white)
Expand Down Expand Up @@ -39,6 +40,7 @@ This project was created to practice HTML, CSS and JavaScript concepts while fol
- Minifiers
- Babel transpiler
- ESLint linter
- React
- GitHub Actions

### Functionality
Expand All @@ -60,6 +62,7 @@ Note that the whole JavaScript source code is implemented within an anonymous ca

- [`v0.0.0`](https://github.com/iamwatchdogs/Signup-Form-Practice/releases/tag/v0.0.0 "goto releases") - Basic implementation of signup page with HTML, CSS and JavaScript.
- [`v1.0.0`](https://github.com/iamwatchdogs/Signup-Form-Practice/releases/tag/v1.0.0 "goto releases") - More sophisticated implementation to overcome some of the edge cases and concerns. _(visually and functionally no diff for output)_
- [`v2.0.0`](https://github.com/iamwatchdogs/Signup-Form-Practice/release/tag/v2.0.0 "goto releases") - Migration of Javascript application into React application. Less concerned about edge cases, focused more on migration. _(visually and functionally no diff for output)_

## Learning outcomes

Expand Down Expand Up @@ -97,8 +100,12 @@ Through this implementation, I was able to learn the following concept from this
- Modular Programming
- Dependencies
- Bundler configuration
- Linter configuration
- React
- Configuration
- Hooks
- GitHub Action _(CI/CD)_

## Output

![output](https://github.com/user-attachments/assets/406a570f-891a-4aa4-b524-0201cea09b0b)
![output](https://github.com/user-attachments/assets/406a570f-891a-4aa4-b524-0201cea09b0b)
Empty file removed bin/empty.json
Empty file.
6 changes: 0 additions & 6 deletions eslint.config.mjs

This file was deleted.

11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sign Up</title>
</head>
<body>
<div id="root"></div>
</body>
</html>
11 changes: 0 additions & 11 deletions jsconfig.json

This file was deleted.

Loading

0 comments on commit 4ec10dd

Please sign in to comment.