{"id":13394390,"url":"https://github.com/krasimir/react-in-patterns","last_synced_at":"2025-05-14T07:03:22.131Z","repository":{"id":37734946,"uuid":"61527215","full_name":"krasimir/react-in-patterns","owner":"krasimir","description":"A free book that talks about design patterns/techniques used while developing with React.","archived":false,"fork":false,"pushed_at":"2025-01-27T05:35:58.000Z","size":137244,"stargazers_count":13501,"open_issues_count":0,"forks_count":975,"subscribers_count":295,"default_branch":"master","last_synced_at":"2025-05-07T06:18:27.309Z","etag":null,"topics":["data-flow","dependency","injection","patterns","react"],"latest_commit_sha":null,"homepage":"https://www.gitbook.com/book/krasimir/react-in-patterns/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krasimir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-20T07:53:11.000Z","updated_at":"2025-05-04T18:57:17.000Z","dependencies_parsed_at":"2022-07-14T04:00:43.739Z","dependency_job_id":"28789637-6e0d-4e1a-b3d4-11cd403838ba","html_url":"https://github.com/krasimir/react-in-patterns","commit_stats":{"total_commits":187,"total_committers":30,"mean_commits":6.233333333333333,"dds":"0.25668449197860965","last_synced_commit":"fecff4a1717520a39d86de35dda962d3980d2773"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krasimir%2Freact-in-patterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krasimir%2Freact-in-patterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krasimir%2Freact-in-patterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krasimir%2Freact-in-patterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krasimir","download_url":"https://codeload.github.com/krasimir/react-in-patterns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254092647,"owners_count":22013290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-flow","dependency","injection","patterns","react"],"created_at":"2024-07-30T17:01:17.889Z","updated_at":"2025-05-14T07:03:17.118Z","avatar_url":"https://github.com/krasimir.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","FrontEnd","Web Development","Books","实践库","Index","📦 Legacy \u0026 Inactive Projects"],"sub_categories":["React Components","React"],"readme":"# React in patterns\n\n:books: A free book that talks about design patterns/techniques used while developing with [React](https://facebook.github.io/react/).\n\n## Book\n\n* [Web](./book)\n* [PDF](./book.pdf)\n* [Mobi](./book.mobi)\n* [ePub](./book.epub)\n\n![React in patterns cover](./book/cover_small.jpg)\n\n## Translations\n\n  * [简体中文](https://github.com/SangKa/react-in-patterns-cn)\n\n## Content\n\n* [In brief](./book/chapter-01/README.md)\n\n### Foundation\n\n* [Communication](./book/chapter-02/README.md)\n  * [Input](./book/chapter-02/README.md#input)\n  * [Output](./book/chapter-02/README.md#output)\n* [Event handlers](./book/chapter-03/README.md)\n* [Composition](./book/chapter-04/README.md)\n  * [Using React's children API](./book/chapter-04/README.md#using-reacts-children-api)\n  * [Passing a child as a prop](./book/chapter-04/README.md#passing-a-child-as-a-prop)\n  * [Higher-order component](./book/chapter-04/README.md#higher-order-component)\n  * [Function as a children, render prop](./book/chapter-04/README.md#function-as-a-children-render-prop)\n* [Controlled and uncontrolled inputs](./book/chapter-05/README.md)\n* [Presentational and container components](./book/chapter-06/README.md) \n\n### Data flow\n\n* [One direction data flow](./book/chapter-07/README.md)\n* [Flux](./book/chapter-08/README.md)\n  * [Flux architecture and its main characteristics](./book/chapter-08/README.md#flux-architecture-and-its-main-characteristics)\n  * [Implementing a Flux architecture](./book/chapter-08/README.md#implementing-a-flux-architecture)\n* [Redux](./book/chapter-09/README.md)\n  * [Redux architecture and its main characteristics](./book/chapter-09/README.md#redux-architecture-and-its-main-characteristics)\n  * [Simple counter app using Redux](./book/chapter-09/README.md#simple-counter-app-using-redux)\n\n### MISC\n\n* [Dependency injection](./book/chapter-10/README.md)\n  * [Using React's context (prior to v. 16.3)](./book/chapter-10/README.md#using-reacts-context-prior-v-163)\n  * [Using React's context (v. 16.3 and above)](./book/chapter-10/README.md#using-reacts-context-v-163-and-above)\n  * [Using the module system](./book/chapter-10/README.md#using-the-module-system)\n* [Styling](./book/chapter-11/README.md)\n  * [The good old CSS class](./book/chapter-11/README.md#the-good-old-css-class)\n  * [Inline styling](./book/chapter-11/README.md#inline-styling)\n  * [CSS modules](./book/chapter-11/README.md#css-modules)\n  * [Styled-components](./book/chapter-11/README.md#styled-components)\n* [Integration of third-party libraries](./book/chapter-12/README.md)\n* [React and separation of concerns](./book/chapter-13/README.md)\n\n\n## Source code\n\nThe code samples used in the book are available [here](./code).\n\n## Other resources\n\n* [React Design principles](https://facebook.github.io/react/contributing/design-principles.html)\n* [Airbnb React/JSX Style Guide](https://github.com/airbnb/javascript/tree/master/react)\n* [React patterns at Planning Center Online](https://github.com/planningcenter/react-patterns)\n* [React patterns by Michael Chan](http://reactpatterns.com/)\n* [React patterns, techniques, tips and tricks](https://github.com/vasanthk/react-bits)\n\n## Building the book\n\n`yarn install \u0026\u0026 yarn build`\n\n*To make the ebook generating possible install [calibre](http://calibre-ebook.com/about) and `ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/bin/`.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrasimir%2Freact-in-patterns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrasimir%2Freact-in-patterns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrasimir%2Freact-in-patterns/lists"}