Skip to content

Commit 57dbd2a

Browse files
authored
Update pull_request_tutorial_for_beginners.md
Removed a code block of javascript that isn't really part of the tutorial.
1 parent 7934c2e commit 57dbd2a

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

public/posts/pull_request_tutorial_for_beginners.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -93,32 +93,11 @@ git checkout main
9393
git pull origin main
9494
git branch -d feature-branch-name
9595
```
96-
```javascript
97-
98-
useEffect(() => {
99-
const fetchDocs = async () => {
100-
try {
101-
const response = await fetch('/posts/index.json');
102-
if (!response.ok) {
103-
throw new Error('Network response was not ok');
104-
}
105-
const data = await response.json();
106-
setDocs(data);
107-
} catch (error) {
108-
setError(error.message);
109-
} finally {
110-
setLoading(false);
111-
}
112-
};
113-
114-
fetchDocs();
115-
}, []);
11696

117-
```
11897
You may also delete the branch from your fork on GitHub.
11998

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

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

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

0 commit comments

Comments
 (0)