Skip to content

Commit

Permalink
Merge pull request #223 from jump3rhood/patch-1
Browse files Browse the repository at this point in the history
Update pull_request_tutorial_for_beginners.md
  • Loading branch information
devvsakib authored Jul 29, 2024
2 parents 7934c2e + 57dbd2a commit 3cdd6a6
Showing 1 changed file with 1 addition and 22 deletions.
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)

0 comments on commit 3cdd6a6

Please sign in to comment.