|
25 | 25 | <!-- PROJECT LOGO -->
|
26 | 26 | <br />
|
27 | 27 | <div align="center">
|
28 |
| - <a href="https://github.com/github_username/repo_name"> |
| 28 | + <a href="https://github.com/optum/react-hooks"> |
29 | 29 | <img src="images/logo.png" alt="Logo" width="80" height="80">
|
30 | 30 | </a>
|
31 | 31 |
|
32 |
| -<h3 align="center">project_title</h3> |
| 32 | +<h3 align="center">react-hooks</h3> |
33 | 33 |
|
34 | 34 | <p align="center">
|
35 |
| - project_description |
| 35 | + A reusable set of React hooks. |
36 | 36 | <br />
|
37 |
| - <a href="https://github.com/github_username/repo_name"><strong>Explore the docs »</strong></a> |
| 37 | + <a href="https://github.com/optum/react-hooks"><strong>Explore the docs »</strong></a> |
38 | 38 | <br />
|
39 | 39 | <br />
|
40 |
| - <a href="https://github.com/github_username/repo_name">View Demo</a> |
| 40 | + <a href="https://github.com/optum/react-hooks/issues">Report Bug</a> |
41 | 41 | ·
|
42 |
| - <a href="https://github.com/github_username/repo_name/issues">Report Bug</a> |
43 |
| - · |
44 |
| - <a href="https://github.com/github_username/repo_name/issues">Request Feature</a> |
| 42 | + <a href="https://github.com/optum/react-hooks/issues">Request Feature</a> |
45 | 43 | </p>
|
46 | 44 | </div>
|
47 | 45 |
|
|
78 | 76 | <!-- ABOUT THE PROJECT -->
|
79 | 77 | ## About The Project
|
80 | 78 |
|
81 |
| -[![Product Name Screen Shot][product-screenshot]](https://example.com) |
82 |
| - |
83 |
| -Here's a blank template to get started: To avoid retyping too much info. Do a search and replace with your text editor for the following: `github_username`, `repo_name`, `twitter_handle`, `linkedin_username`, `email`, `email_client`, `project_title`, `project_description` |
| 79 | +This repository contains various reusable hooks built and currently being used throughout [Optum](https://optum.com). They were created with the goal of simplifying otherwise complex react procedures and concepts, such as state management of asynchronous data, accessibility, etc. Please feel free to explore this repository and use, contribute, and add to these hooks! |
84 | 80 |
|
85 | 81 | <p align="right">(<a href="#top">back to top</a>)</p>
|
86 | 82 |
|
| 83 | +<!-- GETTING STARTED --> |
| 84 | +## Getting Started |
| 85 | +Currently, `react-hooks` is not published in `npm`. Please see [Test Changes Locally](#test-locally) for a way to run our hooks locally |
87 | 86 |
|
| 87 | +### Prerequisites |
| 88 | +Have desired javascript package mananger installed on your machine: |
88 | 89 |
|
89 |
| -### Built With |
90 |
| - |
91 |
| -* [Next.js](https://nextjs.org/) |
92 |
| -* [React.js](https://reactjs.org/) |
93 |
| -* [Vue.js](https://vuejs.org/) |
94 |
| -* [Angular](https://angular.io/) |
95 |
| -* [Svelte](https://svelte.dev/) |
96 |
| -* [Laravel](https://laravel.com) |
97 |
| -* [Bootstrap](https://getbootstrap.com) |
98 |
| -* [JQuery](https://jquery.com) |
99 |
| - |
100 |
| -<p align="right">(<a href="#top">back to top</a>)</p> |
101 |
| - |
102 |
| - |
| 90 | +* [yarn](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable) |
| 91 | + * preferred but not required |
103 | 92 |
|
104 |
| -<!-- GETTING STARTED --> |
105 |
| -## Getting Started |
| 93 | +or |
| 94 | +* [npm](https://www.npmjs.com/package/npm) |
106 | 95 |
|
107 |
| -This is an example of how you may give instructions on setting up your project locally. |
108 |
| -To get a local copy up and running follow these simple example steps. |
109 | 96 |
|
110 |
| -### Prerequisites |
| 97 | +**Optional** |
| 98 | +* [yalc](https://github.com/wclr/yalc) |
| 99 | + * used for testing package locally |
111 | 100 |
|
112 |
| -This is an example of how to list things you need to use the software and how to install them. |
113 |
| -* npm |
114 |
| - ```sh |
115 |
| - npm install npm@latest -g |
116 |
| - ``` |
117 | 101 |
|
118 | 102 | ### Installation
|
119 |
| - |
120 |
| -1. Get a free API Key at [https://example.com](https://example.com) |
121 |
| -2. Clone the repo |
| 103 | +Currently, this package is not published and can therefore not be installed by conventional means (_yarn_ or _npm_). Please see next section if you still wish to utilize this pacakge locally |
| 104 | +<!-- 1. Clone the repo |
122 | 105 | ```sh
|
123 |
| - git clone https://github.com/github_username/repo_name.git |
| 106 | + git clone https://github.com/optum/react-hooks.git |
124 | 107 | ```
|
125 |
| -3. Install NPM packages |
| 108 | +2. Install NPM packages |
126 | 109 | ```sh
|
127 |
| - npm install |
128 |
| - ``` |
129 |
| -4. Enter your API in `config.js` |
130 |
| - ```js |
131 |
| - const API_KEY = 'ENTER YOUR API'; |
132 |
| - ``` |
| 110 | + yarn install |
| 111 | + ``` --> |
133 | 112 |
|
134 | 113 | <p align="right">(<a href="#top">back to top</a>)</p>
|
135 | 114 |
|
| 115 | +<div id='test-locally'> |
| 116 | +### Testing Changes Locally |
| 117 | +If you are in the process of making changes to this repo and wish to test them, or simply wish to playground with our hooks: |
| 118 | + |
| 119 | +1. Have a working react project |
| 120 | +2. Have [yalc](https://github.com/wclr/yalc) installed globally |
| 121 | +```sh |
| 122 | +yarn global add yalc |
| 123 | +``` |
| 124 | +3. Inside `react-hooks` directory, publish package to yalc store |
| 125 | +```sh |
| 126 | +yalc publish |
| 127 | +``` |
| 128 | +4. Inside of directory of your project, add package |
| 129 | +```sh |
| 130 | +yalc add react-hooks |
| 131 | +``` |
| 132 | +5. As you make changes inside of `react-hooks`, continue publishing to store, as explained in step 3. |
| 133 | +6. Update yalc store inside of project directory after each new publish (this may require stopping running instances of project) |
| 134 | +```sh |
| 135 | +yalc update |
| 136 | +``` |
| 137 | +7. Once finished, remove yalc package from project directory |
| 138 | +```sh |
| 139 | +yalc remove react-hooks |
| 140 | +``` |
| 141 | +or |
| 142 | +```sh |
| 143 | +yalc remove --all |
| 144 | +``` |
| 145 | +(if you wish to remove other yalc packages) |
136 | 146 |
|
137 | 147 |
|
138 |
| -<!-- USAGE EXAMPLES --> |
139 |
| -## Usage |
140 | 148 |
|
141 |
| -Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources. |
| 149 | +<p align="right">(<a href="#top">back to top</a>)</p> |
142 | 150 |
|
143 |
| -_For more examples, please refer to the [Documentation](https://example.com)_ |
| 151 | +<!-- USAGE EXAMPLES --> |
| 152 | +## Usage |
| 153 | +Please refer to directories inside of `/hooks` for usages of individual hooks. |
144 | 154 |
|
145 | 155 | <p align="right">(<a href="#top">back to top</a>)</p>
|
146 | 156 |
|
147 | 157 |
|
148 | 158 |
|
149 | 159 | <!-- ROADMAP -->
|
150 | 160 | ## Roadmap
|
151 |
| - |
| 161 | +<!-- |
152 | 162 | - [] Feature 1
|
153 | 163 | - [] Feature 2
|
154 | 164 | - [] Feature 3
|
155 |
| - - [] Nested Feature |
156 |
| - |
157 |
| -See the [open issues](https://github.com/github_username/repo_name/issues) for a full list of proposed features (and known issues). |
| 165 | + - [] Nested Feature --> |
| 166 | +See the [open issues](https://github.com/optum/react-hooks/issues) for a full list of proposed features (and known issues). |
158 | 167 |
|
159 | 168 | <p align="right">(<a href="#top">back to top</a>)</p>
|
160 | 169 |
|
@@ -190,40 +199,38 @@ Distributed under the Apache 2.0 License. See `LICENSE.txt` for more information
|
190 | 199 | <!-- MAINTAINERS -->
|
191 | 200 | ## Maintainers
|
192 | 201 |
|
193 |
| -- Full Name 1 |
194 |
| - - GitHub Enterprise: [github_username](https://github.com/username1) |
195 |
| - - Email: email1@email.com |
196 |
| -- Full Name 2 |
197 |
| - - GitHub Enterprise: [github_username](https://github.com/username2) |
198 |
| - |
| 202 | +- Niels Peschel |
| 203 | + - GitHub: [NielsJPeschel](https://github.com/NielsJPeschel) |
| 204 | + - Email: peschel.niels@gmail.com |
| 205 | +- Nicholas Thurow |
| 206 | + - GitHub: [nthurow](https://github.com/nthurow) |
| 207 | + <!-- - Email: [email protected] --> |
199 | 208 |
|
200 | 209 | <p align="right">(<a href="#top">back to top</a>)</p>
|
201 | 210 |
|
202 |
| - |
203 |
| - |
204 | 211 | <!-- ACKNOWLEDGMENTS -->
|
205 |
| -## Acknowledgments |
| 212 | +<!-- ## Acknowledgments |
206 | 213 |
|
207 | 214 | * []()
|
208 | 215 | * []()
|
209 | 216 | * []()
|
210 | 217 |
|
211 |
| -<p align="right">(<a href="#top">back to top</a>)</p> |
| 218 | +<p align="right">(<a href="#top">back to top</a>)</p> --> |
212 | 219 |
|
213 | 220 |
|
214 | 221 |
|
215 | 222 | <!-- MARKDOWN LINKS & IMAGES -->
|
216 | 223 | <!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
|
217 |
| -[contributors-shield]: https://img.shields.io/github/contributors/github_username/repo_name.svg?style=for-the-badge |
218 |
| -[contributors-url]: https://github.com/github_username/repo_name/graphs/contributors |
219 |
| -[forks-shield]: https://img.shields.io/github/forks/github_username/repo_name.svg?style=for-the-badge |
220 |
| -[forks-url]: https://github.com/github_username/repo_name/network/members |
221 |
| -[stars-shield]: https://img.shields.io/github/stars/github_username/repo_name.svg?style=for-the-badge |
222 |
| -[stars-url]: https://github.com/github_username/repo_name/stargazers |
223 |
| -[issues-shield]: https://img.shields.io/github/issues/github_username/repo_name.svg?style=for-the-badge |
224 |
| -[issues-url]: https://github.com/github_username/repo_name/issues |
225 |
| -[license-shield]: https://img.shields.io/github/license/github_username/repo_name.svg?style=for-the-badge |
226 |
| -[license-url]: https://github.com/github_username/repo_name/blob/master/LICENSE.txt |
| 224 | +[contributors-shield]: https://img.shields.io/github/contributors/optum/react-hooks.svg?style=for-the-badge |
| 225 | +[contributors-url]: https://github.com/optum/react-hooks/graphs/contributors |
| 226 | +[forks-shield]: https://img.shields.io/github/forks/optum/react-hooks.svg?style=for-the-badge |
| 227 | +[forks-url]: https://github.com/optum/react-hooks/network/members |
| 228 | +[stars-shield]: https://img.shields.io/github/stars/optum/react-hooks.svg?style=for-the-badge |
| 229 | +[stars-url]: https://github.com/optum/react-hooks/stargazers |
| 230 | +[issues-shield]: https://img.shields.io/github/issues/optum/react-hooks.svg?style=for-the-badge |
| 231 | +[issues-url]: https://github.com/optum/react-hooks/issues |
| 232 | +[license-shield]: https://img.shields.io/github/license/optum/react-hooks.svg?style=for-the-badge |
| 233 | +[license-url]: https://github.com/optum/react-hooks/blob/master/LICENSE.txt |
227 | 234 | [linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
|
228 |
| -[linkedin-url]: https://linkedin.com/in/linkedin_username |
| 235 | +[linkedin-url]: https://linkedin.com/in/niels-peschel |
229 | 236 | [product-screenshot]: images/screenshot.png
|
0 commit comments