Skip to content

Commit e8d5ca5

Browse files
committed
Add
1 parent e346bfe commit e8d5ca5

28 files changed

+46018
-11795
lines changed

Track 4_ReactJS_Web Development/react-playground/.editorconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PORT = 2000
2+
HOST = 0.0.0.0

Track 4_ReactJS_Web Development/react-playground/.eslintrc.js

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: npm
5+
directory: "/"
6+
schedule:
7+
interval: daily
8+
open-pull-requests-limit: 10
9+
labels:
10+
- dependencies
11+
versioning-strategy: increase
Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
1-
node_modules
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# Eclude JetBrains config directory
26+
.idea

Track 4_ReactJS_Web Development/react-playground/.husky/.gitignore

Whitespace-only changes.

Track 4_ReactJS_Web Development/react-playground/.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

Track 4_ReactJS_Web Development/react-playground/.prettierrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

Track 4_ReactJS_Web Development/react-playground/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 54 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,59 @@
1-
# esbuild React Javascript Template
1+
# React 18 template ⚛️
2+
> Faster as it should be. This template has stripped all tests and dust that is included with CRA (`create-react-app`) template.
3+
>
4+
> A very minimal and skimmed setup of React. Hope you liked it. ✌🏽
25
3-
> This is a Javascript template for [esbuild create react app](https://github.com/awran5/esbuild-create-react-app) project.
6+
## Default package manager: Yarn (lighter than NPM)
7+
> You can use NPM too, just remove the `yarn.lock` in that case.
48
5-
## What is inside?
69

7-
- [esbuild](https://esbuild.github.io/)
8-
- [Eslint](https://eslint.org/)
9-
- [Prettier](https://prettier.io/)
10-
- [Husky](https://github.com/typicode/husky)
11-
- [lint-staged](https://github.com/okonet/lint-staged)
12-
- [live-server](https://github.com/tapio/live-server)
10+
![Yarn badge](https://img.shields.io/badge/Yarn-2C8EBB?style=for-the-badge&logo=yarn&logoColor=white) ![](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white) ![NodeJS Badge](https://img.shields.io/badge/Node.js-339933?style=for-the-badge&logo=nodedotjs&logoColor=white) ![](https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB) ![](https://img.shields.io/badge/Tailwind_CSS-38B2AC?style=for-the-badge&logo=tailwind-css&logoColor=white) ![](https://img.shields.io/badge/next.js-000000?style=for-the-badge&logo=nextdotjs&logoColor=white) ![](https://img.shields.io/badge/Postman-FF6C37?style=for-the-badge&logo=Postman&logoColor=white)
1311

14-
### License
12+
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) ![ts](https://badgen.net/badge/-/TypeScript?icon=typescript&label&labelColor=blue&color=555555) ![ts-strict](https://camo.githubusercontent.com/0f9fcc0ac1b8617ad4989364f60f78b2d6b32985ad6a508f215f14d8f897b8d3/68747470733a2f2f62616467656e2e6e65742f62616467652f547970655363726970742f7374726963742532302546302539462539322541412f626c7565)
13+
[![js-standard-style](https://cdn.rawgit.com/standard/standard/master/badge.svg)](http://standardjs.com)
1514

16-
MIT © [awran5](https://github.com/awran5/)
15+
## ⚠️This template uses React 18-rc⚠️
16+
Since React18 is the future and already in the release candidate, i felt confident of using the rc version of react and react-dom in the template. Not major changes would be made in `rc -> latest release`.
17+
18+
Please read the [docs](https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html) for more information about the changes from **React 17 to 18**.
19+
20+
### P.S
21+
> React 18 uses a new Client Root API, documented below, same has been explained well in `App.js` inside the `src` folder.
22+
23+
24+
```jsx
25+
// New ROOT API in React 18 ⚛️
26+
import { createRoot } from 'react-dom/client';
27+
const container = document.getElementById('app');
28+
const root = createRoot(container);
29+
root.render(<App {...props} />);
30+
```
31+
32+
## Running the project on port 2000
33+
```shell
34+
npm install
35+
npm run start
36+
```
37+
> That's it ✌🏽 (Installing the dependencies might take time, depending upon your workstation's computing power and network bandwidth available).
38+
39+
**After `npm run start` open: [ReactApp🔗](http://127.0.0.1:2000) **
40+
41+
---
42+
43+
### Advanced Implementations ahead (skip if not needed)
44+
45+
**Please checkout the branch as per your requirement, currently the branches are:**
46+
47+
1. **NextJS with Tailwind** `nextjs-tailwind` -> https://github.com/nooobcoder/clean-react-app/tree/nextjs-tailwind
48+
49+
2. **NextJS with TypeScript** `nextjs-typescript` -> https://github.com/nooobcoder/clean-react-app/tree/nextjs-typescript
50+
51+
3. **React with Typescript (very strict typechecks)** `typescript-react-app` -> https://github.com/nooobcoder/clean-react-app/tree/typescript-react-app
52+
53+
---
54+
55+
A very clean React App ⚛️ starter template by [Ankur Paul](https://github.com/nooobcoder)
56+
57+
---
58+
59+
![profile-avatar](https://avatars.githubusercontent.com/u/50350828?s=400&u=82f5ebc3cbedef0c5ca3c59086cf0f38c45dedbc&v=4)

Track 4_ReactJS_Web Development/react-playground/builder.js

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)