{"id":15839791,"url":"https://github.com/pythonista7/react-workshop","last_synced_at":"2025-04-01T16:48:09.756Z","repository":{"id":40670445,"uuid":"486937802","full_name":"Pythonista7/React-Workshop","owner":"Pythonista7","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-29T17:13:26.000Z","size":871,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T11:11:54.243Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pythonista7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-29T10:55:41.000Z","updated_at":"2022-04-29T10:59:34.000Z","dependencies_parsed_at":"2022-08-10T00:25:24.093Z","dependency_job_id":null,"html_url":"https://github.com/Pythonista7/React-Workshop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pythonista7%2FReact-Workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pythonista7%2FReact-Workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pythonista7%2FReact-Workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pythonista7%2FReact-Workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pythonista7","download_url":"https://codeload.github.com/Pythonista7/React-Workshop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246673888,"owners_count":20815643,"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":[],"created_at":"2024-10-05T16:21:48.872Z","updated_at":"2025-04-01T16:48:09.741Z","avatar_url":"https://github.com/Pythonista7.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic React\n\n## Setup\n\n```sh\nnpx create-react-app web-react --template typescript\ncd web-react\nnpm start\n```\n\n## Chakra UI\nInstall Chakra UI:\n```\nnpm i @chakra-ui/react @emotion/react@^11 @emotion/styled@^11 framer-motion@^6\n```\nref : https://chakra-ui.com/guides/getting-started/cra-guide\n\n### Provider Setup\n```jsx\nimport * as React from 'react'\n\n// 1. import `ChakraProvider` component\nimport { ChakraProvider } from '@chakra-ui/react'\n\nfunction App() {\n  // 2. Wrap ChakraProvider at the root of your app\n  return (\n    \u003cChakraProvider\u003e\n      \u003cApp /\u003e\n    \u003c/ChakraProvider\u003e\n  )\n}\n```\n\n## Recoil\nInstall Recoil:\n```\nnpm i recoil\n```\nref : https://recoiljs.org/docs/introduction/installation\n\n### Provider Setup\n```jsx\nimport * as React from 'react'\n\n// 1. import `RecoilRoot` component\nimport { RecoilRoot } from \"recoil\";\n\nfunction App() {\n  // 2. Wrap RecoilRoot at the root of your app\n  return (\n    \u003cRecoilRoot\u003e\n      \u003cChakraProvider\u003e\n        \u003cApp /\u003e\n      \u003c/ChakraProvider\u003e\n    \u003c/RecoilRoot\u003e  \n  )\n}\n```\n\n## Konva\nInstall Konva\n```\nnpm i konva react-konva\n```\nref: https://konvajs.org/docs/react/index.html\n\n### Basic setup\n```jsx\nimport { Stage, Layer } from \"react-konva\";\n\nfunction Canvas() {\n  return(\n    \u003cStage height={300} width={300}\u003e\n      \u003cLayer\u003e\n        {...}\n      \u003c/Layer\u003e\n    \u003c/Stage\u003e\n  )\n}\n```\n\n## Contents/Branches\n1. main (completed project)\n2. basic/chakra-ui\n3. basic/input-component\n4. basic/shapes\n5. manage-state/lifting-state-up\n6. manage-state/recoiljs\n7. final/add-canvas\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonista7%2Freact-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythonista7%2Freact-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonista7%2Freact-workshop/lists"}