Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pull_request_tutorial_for_beginners.md #223

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 1 addition & 22 deletions public/posts/pull_request_tutorial_for_beginners.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,32 +93,11 @@ git checkout main
git pull origin main
git branch -d feature-branch-name
```
```javascript

useEffect(() => {
const fetchDocs = async () => {
try {
const response = await fetch('/posts/index.json');
if (!response.ok) {
throw new Error('Network response was not ok');
}
const data = await response.json();
setDocs(data);
} catch (error) {
setError(error.message);
} finally {
setLoading(false);
}
};

fetchDocs();
}, []);

```
You may also delete the branch from your fork on GitHub.

Congratulations! You've successfully created and merged a pull request. This process helps maintain code quality and encourages collaboration among developers.

This tutorial covers the basics of creating a pull request and includes best practices to help beginners understand the process.

> Written by **Sakib Ahmed** | [GitHub](https://github.com/devvsakib)
> Written by **Sakib Ahmed** | [GitHub](https://github.com/devvsakib)