├── .all-contributorsrc
├── .github
└── FUNDING.yml
├── LICENSE
├── README.md
├── chart.drawio
├── index.html
└── screenshot.jpg
/.all-contributorsrc:
--------------------------------------------------------------------------------
1 | {
2 | "files": [
3 | "README.md"
4 | ],
5 | "imageSize": 100,
6 | "commit": false,
7 | "contributors": [
8 | {
9 | "login": "Wavez",
10 | "name": "Gal Margalit",
11 | "avatar_url": "https://avatars.githubusercontent.com/u/2171199?v=4",
12 | "profile": "https://github.com/Wavez",
13 | "contributions": [
14 | "code",
15 | "doc",
16 | "content",
17 | "maintenance",
18 | "design",
19 | "blog",
20 | "projectManagement",
21 | "review"
22 | ]
23 | },
24 | {
25 | "login": "albseb511",
26 | "name": "Albert Sebastian",
27 | "avatar_url": "https://avatars.githubusercontent.com/u/12158859?v=4",
28 | "profile": "https://www.linkedin.com/in/albseb/",
29 | "contributions": [
30 | "ideas",
31 | "bug",
32 | "question",
33 | "example"
34 | ]
35 | },
36 | {
37 | "login": "eladcandroid",
38 | "name": "Elad Cohen",
39 | "avatar_url": "https://avatars.githubusercontent.com/u/13297000?v=4",
40 | "profile": "https://github.com/eladcandroid",
41 | "contributions": [
42 | "bug"
43 | ]
44 | }
45 | ],
46 | "contributorsPerLine": 7,
47 | "projectName": "react-hooks-lifecycle",
48 | "projectOwner": "Wavez",
49 | "repoType": "github",
50 | "repoHost": "https://github.com",
51 | "skipCi": true
52 | }
53 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 |
2 | github: Wavez
3 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Gal Margalit
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 | []()
3 | [](https://github.com/Wavez/react-hooks-lifecycle/stargazers)
4 | [](https://twitter.com/MargalitGal)
5 |
6 | # React Hooks Lifecycle Diagram ⚛️ 🪝 ⏳ #
7 | [View the interactive diagram](https://wavez.github.io/react-hooks-lifecycle/)
8 |
9 |
10 |
11 |
12 |
13 | ## 💡 Functional components lifecycle explained ##
14 |
15 | This diagram is made using [draw.io](https://draw.io)
16 | and will be updated when react will introduce new hooks.
17 |
18 | This diagram was inspired by [Dan Abramov's tweet](https://twitter.com/dan_abramov/status/981712092611989509) (and its latter react [implementation](http://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/)) of the now "old" 👴 Class Components lifecycle.
19 |
20 | ## 📖 Further reading
21 | - [React hooks flow](https://github.com/donavon/hook-flow)
22 | - [React hooks API](https://reactjs.org/docs/hooks-reference.html)
23 | - [About this repo](https://medium.com/@galmargalit/react-function-components-hooks-lifecycle-diagram-14f76e0a5988)
24 |
25 |
26 | ## 🤗 Contributors
27 | This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification and its [emoji legend](https://allcontributors.org/docs/en/emoji-key).
28 | Contributions of any kind are welcome!
29 | Thanks goes to these wonderful people:
30 |
31 |
32 |
33 |
34 |
Gal Margalit 💻 📖 🖋 🚧 🎨 📝 📆 👀 |
37 | Albert Sebastian 🤔 🐛 💬 💡 |
38 | Elad Cohen 🐛 |
39 |