You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-23Lines changed: 8 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ This hook returns an object containing the boolean results of several media quer
98
98
}
99
99
```
100
100
101
-
What's that good for? Say you have a React component you only want to display on `md`-sized screens. Thow this into your JSX:
101
+
What's that good for? Say you have a React component you only want to display on `md`-sized screens. Throw this into your JSX:
102
102
103
103
```jsx
104
104
{breakpoint.md&&<MyComponent />}
@@ -127,30 +127,15 @@ Have fun!
127
127
128
128
<h2id="contributing">Contributing</h2>
129
129
130
-
If you'd like to contribute to this project (which would be awesome), here's how to set it up:
130
+
If you'd like to contribute to this project (which would be awesome), the easiest way to set it up would be to install the [GitHub CLI](https://cli.github.com/) and the run the following:
131
131
132
-
1.[Fork this repository](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) to your own GitHub account.
Now, you can build the package with `npm run build`, build _and_ watch for changes with `npm run dev` (automatically rebuilding on each change in the source), and run the test suite with `npm run test`.
138
+
Now, you can build the package with `npm run build`, build _and_ watch for changes with `npm run dev` (automatically rebuilding on each change in the source), run the test suite with `npm run test`, and create pull requests with [`gh pr create`](https://cli.github.com/manual/gh_pr_create).
154
139
155
140
After building the package, you can test it in another project on your machine by [adding the local path](https://docs.npmjs.com/files/package.json#local-paths) as a dependency (e.g., by running `npm install /path/to/local/use-window-width-breakpoints` in that other project).
0 commit comments