{"id":20045630,"url":"https://github.com/fpetterlate/react-ts-component-starter","last_synced_at":"2025-05-05T09:30:58.248Z","repository":{"id":57346760,"uuid":"121111876","full_name":"fpetterlate/react-ts-component-starter","owner":"fpetterlate","description":"What you need to create your own React component using typescript.","archived":false,"fork":false,"pushed_at":"2018-02-15T23:56:54.000Z","size":20,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-23T19:52:13.070Z","etag":null,"topics":["react","reactjs","typescript","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/fpetterlate.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":"2018-02-11T10:26:22.000Z","updated_at":"2020-10-13T13:21:15.000Z","dependencies_parsed_at":"2022-08-25T19:41:42.309Z","dependency_job_id":null,"html_url":"https://github.com/fpetterlate/react-ts-component-starter","commit_stats":null,"previous_names":["fredrikwithpettersen/react-ts-component-starter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpetterlate%2Freact-ts-component-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpetterlate%2Freact-ts-component-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpetterlate%2Freact-ts-component-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpetterlate%2Freact-ts-component-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fpetterlate","download_url":"https://codeload.github.com/fpetterlate/react-ts-component-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252471345,"owners_count":21753153,"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":["react","reactjs","typescript","webpack"],"created_at":"2024-11-13T11:18:18.701Z","updated_at":"2025-05-05T09:30:57.958Z","avatar_url":"https://github.com/fpetterlate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"React Typescript Component Starter\n=\n\nStarter project for creating your own React component with TypeScript. This component is just a demo of what you get when you publish it.\n\n## Edit\n* Edit `src/index.tsx` and `src/style.css`\n\n## Build\n* `npm i` to install all dependencies.\n* `npm run build` to build your component\n* `npm link` to create a symbolic link from the global folder to your component\n\n## Run Tests\n* `npm run test` to run tests\n* `npm run test:watch` to see test status while your develop\n\n## Develop\n* Create a new React app using for example `create-react-app`. This app will be used for testing your component.\n* Import your react component\n* `npm link \u003cyour-component\u003e` to link `node_modules/\u003cyour-component\u003e` in your application to the global folder. So when importing your component it will call on the built version in the component project.\n* `npm start` in your component folder. You will see that every time you change something it will automatically rebuild.\n* Run your application. If using `create-react-app`, run it with `npm start`.\n* Do some changes in the component and see that the application gets updated.\n\n## Publish\n* Edit `package.json` by adding the correct information like `name` and `author`.\n* Create a NPM account\n* `npm login` with your account information\n* `npm publish` to publish your component so other can enjoy its existence.\n\n## Links\n\n[React](https://reactjs.org/)\n\n[TypeScript](https://www.typescriptlang.org/)\n\n[Webpack](https://webpack.js.org/)\n\nInspired by Broda Noels [blog](https://medium.com/BrodaNoel/how-to-create-a-react-component-and-publish-it-in-npm-668ad7d363ce).\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffpetterlate%2Freact-ts-component-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffpetterlate%2Freact-ts-component-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffpetterlate%2Freact-ts-component-starter/lists"}