Skip to content

Commit 7f45cee

Browse files
authored
Merge pull request #16 from codeharborhub/dev-1
getting started with docs
2 parents 48fa651 + bfb630e commit 7f45cee

File tree

6 files changed

+146
-4
lines changed

6 files changed

+146
-4
lines changed

docs/index.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Welcome to CodeHarborHub Tutorials
2+
title: Welcome to CodeHarborHub
33
sidebar_label: Welcome to CodeHarborHub
44
sidebar_position: 1
55
slug: /
@@ -9,6 +9,8 @@ Hello, and welcome to CodeHarborHub! Our mission is to provide accessible and co
99

1010
<AdsComponent />
1111

12+
<br />
13+
1214
With a team of experienced instructors and industry experts, we offer a diverse range of courses and learning paths tailored to meet your specific goals and interests. Join our community today and embark on your journey towards success in the tech industry!
1315

1416
## What is CodeHarborHub?
@@ -40,6 +42,7 @@ There are many reasons to choose CodeHarborHub for your tech education needs. He
4042
- **Feedback and Support**: Our instructors and support team are here to help you every step of the way. If you have questions or need assistance, don't hesitate to reach out – we're here to ensure that you have a positive learning experience on CodeHarborHub.
4143

4244
<AdsComponent />
45+
<br />
4346

4447
## Get Started Today!
4548

docs/react/_category_.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "React",
3+
"position": 22,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "React is a JavaScript library for building user interfaces. It is maintained by Facebook and a community of individual developers and companies."
7+
}
8+
}

docs/react/create-react-app.mdx

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
id: create-react-app
3+
title: Getting Started with React
4+
sidebar_label: Create React App
5+
sidebar_position: 1
6+
description: Development and implementation the API of interaction of two sites
7+
---
8+
9+
Welcome to the React tutorial series! In this comprehensive guide, we will take you through the fundamentals of React, a popular JavaScript library for building user interfaces. Whether you're a beginner or have some experience with web development, this tutorial will provide you with a solid foundation to start building dynamic and interactive web applications using React.
10+
11+
<AdsComponent />
12+
13+
<br />
14+
15+
### Content Agenda:
16+
17+
1. Introduction to React
18+
- What is React?
19+
- Why use React?
20+
- React's key features
21+
2. Setting Up the Development Environment
22+
- Installing Node.js and npm
23+
- Creating a new React project
24+
- Familiarizing with the project structure
25+
3. Components and JSX
26+
- Understanding React components
27+
- Writing JSX code
28+
- Rendering components
29+
4. State and Props
30+
- Managing component state
31+
- Passing data using props
32+
- Updating state and re-rendering
33+
5. Handling Events
34+
- React event handling
35+
- Binding event handlers
36+
- Handling form submissions
37+
6. Working with Lists and Conditional Rendering
38+
- Rendering dynamic lists of data
39+
- Conditional rendering based on state
40+
7. React Router
41+
- Introduction to React Router
42+
- Setting up routes
43+
- Navigating between pages
44+
8. Introduction to React Hooks
45+
- Understanding Hooks
46+
- useState and useEffect
47+
- Custom Hooks
48+
9. Working with APIs
49+
- Fetching data from APIs
50+
- Async/await and Promises
51+
- Error handling and loading states
52+
10. Deploying React Apps
53+
- Preparing your app for deployment
54+
- Deploying to platforms like Vercel or Netlify
55+
- Optimizing your app for production
56+
57+
Throughout this tutorial, we will provide practical examples, code snippets, and exercises to help reinforce your understanding of React. By the end of the series, you'll have the skills and knowledge to build your own React applications from scratch.
58+
59+
<AdsComponent />
60+
61+
<br />
62+
63+
## Feedback
64+
65+
We value your feedback! If you have any suggestions, questions, or issues related to Create React App or this documentation, please don't hesitate to reach out to us. Your input helps us improve the documentation and provide a better experience for all users.
66+
67+
To provide feedback, you can:
68+
- Send us an email at ajaydhangar49@gmail.com
69+
- Open an issue on our GitHub repository: [issue](https://github.com/codeharborhub/tutorial/issues)
70+
- Join our community forum and engage in discussions: [Discussions](https://github.com/orgs/codeharborhub/discussions)
71+
72+
We appreciate your contribution in making Create React App even better!

docs/react/react-intro.mdx

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
id: react-intro
3+
title: Welcome to React
4+
sidebar_label: Welcome
5+
sidebar_position: 2
6+
description: Development and implementation the API of interaction of two sites
7+
tags: [React, JavaScript library, User interfaces, Virtual DOM, Declarative syntax, UI components, Web development, Front-end, Single-page applications, Performance optimization, State management, Component-based architecture, JavaScript framework]
8+
---
9+
10+
React is a JavaScript library for building user interfaces. It allows you to create reusable UI components and efficiently update and render them as the data changes. With its virtual DOM and declarative syntax, React makes it easier to build interactive and performant web applications.
11+
12+
<AdsComponent />
13+
14+
<br />
15+
16+
## Getting Started with React
17+
18+
To get started with React, you can follow these steps:
19+
20+
**1. Install Node.js:** React requires Node.js, so make sure you have it installed on your machine. You can download and install Node.js from the official website: [https://nodejs.org](https://nodejs.org)
21+
22+
**2. Create a New React Project:** Open your terminal or command prompt and run the following command to create a new React project using Create React App:
23+
24+
```sh
25+
npx create-react-app my-app
26+
```
27+
28+
This will create a new directory called `my-app` with a basic React project structure and configuration.
29+
30+
**3. Run the Development Server:** Navigate to the project directory (`my-app`) and start the development server by running the following command:
31+
32+
```sh
33+
cd my-app
34+
npm start
35+
```
36+
37+
This will start the development server and open your React app in a web browser. You can make changes to the code in the project and see the live updates in the browser.
38+
39+
**4. Learn React Fundamentals:** Once your project is set up, you can start learning the fundamentals of React. The official React documentation is an excellent resource to begin with: [https://reactjs.org/docs/getting-started.html](https://reactjs.org/docs/getting-started.html)
40+
41+
**5. Build Your React App:** With the knowledge of React fundamentals, you can start building your own React applications. Use React components to structure your UI, manage state and props, and handle user interactions. Combine React with other libraries and tools to create powerful and interactive web applications.
42+
43+
<AdsComponent />
44+
45+
<br />
46+
47+
## Resources for Learning React
48+
49+
Here are some additional resources to help you learn React:
50+
51+
- **Official React Documentation:** [https://reactjs.org/docs](https://reactjs.org/docs/getting-started.html)
52+
- **React Tutorial:** [https://reactjs.org/tutorial/tutorial.html](https://reactjs.org/tutorial/tutorial.html)
53+
- **React Hooks Documentation:** [https://reactjs.org/docs/hooks-intro.html](https://reactjs.org/docs/hooks-intro.html)
54+
- **React Router Documentation:** [https://reactrouter.com](https://reactrouter.com)
55+
- **React Context API Documentation:** [https://reactjs.org/docs/context.html](https://reactjs.org/docs/context.html)
56+
- **Awesome React:** [https://github.com/enaqx/awesome-react](https://github.com/enaqx/awesome-react)
57+
58+
Remember, practice is key to mastering React. Explore and build various projects to gain hands-on experience and improve your React skills.
59+
60+
Start your journey with React today and enjoy building awesome web applications with ease! If you have any questions or need assistance, feel free to reach out to us. We're here to help you succeed with React.

docusaurus.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ const config = {
135135
{
136136
type: "html",
137137
value: `<div class="dropdown_grid">
138-
<a class="dropbtn" href="/tutorial/">Tutorials</a>
139138
<div class="dropdown-content">
140139
<a href="#" class="nav__icons"> <img src="/icons/html-5.svg" title="HTML5" alt="HTML" /> </a>
141140
<a href="#" class="nav__icons"> <img src="/icons/css.svg" title="CSS" alt="CSS" /> </a>

src/theme/DocItem/DocsRating.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const DocsRating = ({ label }) => {
1212
// const { colorMode } = useColorMode();
1313
const DiscordInviteURL = "https://discord.gg/8p9Z6jkVru";
1414
const openDocIssueURL =
15-
`https://github.com/codeharborhub/codeharborhub.github.io/issues/new?assignees=&labels=&template=---doc-error-report.md&title=Issue with codeharborhub.github.io${location.pathname}`;
15+
`https://github.com/codeharborhub/tutorial/issues/new?assignees=&labels=&template=---doc-error-report.md&title=Issue with codeharborhub.github.io${location.pathname}`;
1616
const docEnhancementURL =
17-
`https://github.com/codeharborhub/codeharborhub.github.io/issues/new?assignees=&labels=&template=---doc-site-enhancement-request.md&title=Doc enhancement request for codeharborhub.github.io${location.pathname}`;
17+
`https://github.com/codeharborhub/tutorial/issues/new?assignees=&labels=&template=---doc-site-enhancement-request.md&title=Doc enhancement request for codeharborhub.github.io${location.pathname}`;
1818

1919
const [haveVoted, setHaveVoted] = useState(false);
2020
const [liked, setLiked] = useState(false);

0 commit comments

Comments
 (0)