{"id":25759703,"url":"https://github.com/maechabin/create-react-app-sample","last_synced_at":"2026-06-09T01:03:33.542Z","repository":{"id":84291497,"uuid":"68382186","full_name":"maechabin/create-react-app-sample","owner":"maechabin","description":null,"archived":false,"fork":false,"pushed_at":"2016-09-16T13:33:27.000Z","size":411,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T17:44:22.447Z","etag":null,"topics":["create-react-app","react","sample"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/maechabin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-16T13:31:22.000Z","updated_at":"2018-08-07T11:08:57.000Z","dependencies_parsed_at":"2023-03-04T22:30:36.293Z","dependency_job_id":null,"html_url":"https://github.com/maechabin/create-react-app-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maechabin/create-react-app-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fcreate-react-app-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fcreate-react-app-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fcreate-react-app-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fcreate-react-app-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maechabin","download_url":"https://codeload.github.com/maechabin/create-react-app-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fcreate-react-app-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34086665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["create-react-app","react","sample"],"created_at":"2025-02-26T17:37:58.013Z","updated_at":"2026-06-09T01:03:33.535Z","avatar_url":"https://github.com/maechabin.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"Below you will find some information on how to perform common tasks.  \nYou can find the most recent version of this guide [here](https://github.com/facebookincubator/create-react-app/blob/master/template/README.md).\n\n## Sending Feedback\n\nWe are always open to [your feedback](https://github.com/facebookincubator/create-react-app/issues).\n\n## Folder Structure\n\nAfter creation, you project should look like this:\n\n```\nmy-app/\n  README.md\n  index.html\n  favicon.ico\n  node_modules/\n  package.json\n  src/\n    App.css\n    App.js\n    index.css\n    index.js\n    logo.svg\n```\n\nFor the project to build, **these files must exist with exact filenames**:\n\n* `index.html` is the page template;\n* `favicon.ico` is the icon you see in the browser tab;\n* `src/index.js` is the JavaScript entry point.\n\nYou can delete or rename the other files.\n\nYou may create subdirectories inside `src`. For faster rebuilds, only files inside `src` are processed by Webpack.  \nYou need to **put any JS and CSS files inside `src`**, or Webpack won’t see them.\n\nYou can, however, create more top-level directories.  \nThey will not be included in the production build so you can use them for things like documentation.\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.\u003cbr\u003e\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\u003cbr\u003e\nYou will also see any lint errors in the console.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.\u003cbr\u003e\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\u003cbr\u003e\nYour app is ready to be deployed!\n\n### `npm run eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transient dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## How To...\n\n### Import a Component\n\nThis project setup supports ES6 modules thanks to Babel.  \nWhile you can still use `require()` and `module.exports`, we encourage you to use [`import` and `export`](http://exploringjs.com/es6/ch_modules.html) instead.\n\nFor example:\n\n### `Button.js`\n\n```js\nimport React, { Component } from 'react';\n\nclass Button extends Component {\n  render() {\n    // ...\n  }\n}\n\nexport default Button; // Don’t forget to use export default!\n```\n\n### `DangerButton.js`\n\n```js\nimport React, { Component } from 'react';\nimport Button from './Button'; // Import a component from another file\n\nclass DangerButton extends Component {\n  render() {\n    return \u003cButton color='red' /\u003e;\n  }\n}\n\nexport default DangerButton;\n```\n\nBe aware of the [difference between default and named exports](http://stackoverflow.com/questions/36795819/react-native-es-6-when-should-i-use-curly-braces-for-import/36796281#36796281). It is a common source of mistakes.\n\nWe suggest that you stick to using default imports and exports when a module only exports a single thing (for example, a component). That’s what you get when you use `export default Button` and `import Button from './Button'`.\n\nNamed exports are useful for utility modules that export several functions. A module may have at most one default export and as many named exports as you like.\n\nLearn more about ES6 modules:\n\n* [When to use the curly braces?](http://stackoverflow.com/questions/36795819/react-native-es-6-when-should-i-use-curly-braces-for-import/36796281#36796281)\n* [Exploring ES6: Modules](http://exploringjs.com/es6/ch_modules.html)\n* [Understanding ES6: Modules](https://leanpub.com/understandinges6/read#leanpub-auto-encapsulating-code-with-modules)\n\n### Add a Stylesheet\n\nThis project setup uses [Webpack](https://webpack.github.io/) for handling all assets. Webpack offers a custom way of “extending” the concept of `import` beyond JavaScript. To express that a JavaScript file depends on a CSS file, you need to **import the CSS from the JavaScript file**:\n\n#### `Button.css`\n\n```css\n.Button {\n  padding: 20px;\n}\n```\n\n#### `Button.js`\n\n```js\nimport React, { Component } from 'react';\nimport './Button.css'; // Tell Webpack that Button.js uses these styles\n\nclass Button extends Component {\n  render() {\n    // You can use them as regular CSS styles\n    return \u003cdiv className='Button' /\u003e;\n  }\n}\n```\n\n**This is not required for React** but many people find this feature convenient. You can read about the benefits of this approach [here](https://medium.com/seek-ui-engineering/block-element-modifying-your-javascript-components-d7f99fcab52b). However you should be aware that this makes your code less portable to other build tools and environments than Webpack.\n\nIn development, expressing dependencies this way allows your styles to be reloaded on the fly as you edit them. In production, all CSS files will be concatenated into a single minified `.css` file in the build output.\n\nIf you are concerned about using Webpack-specific semantics, you can put all your CSS right into `src/index.css`. It would still be imported from `src/index.js`, but you could always remove that import if you later migrate to a different build tool.\n\n### Post-Process CSS\n\nThis project setup minifies your CSS and adds vendor prefixes to it automatically through [Autoprefixer](https://github.com/postcss/autoprefixer) so you don’t need to worry about it.\n\nFor example, this:\n\n```css\n.App {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n}\n```\n\nbecomes this:\n\n```css\n.App {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n      -ms-flex-direction: row;\n          flex-direction: row;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n```\n\nThere is currently no support for preprocessors such as Less, or for sharing variables across CSS files.\n\n### Add Images and Fonts\n\nWith Webpack, using static assets like images and fonts works similarly to CSS.\n\nYou can **`import` an image right in a JavaScript module**. This tells Webpack to include that image in the bundle. Unlike CSS imports, importing an image or a font gives you a string value. This value is the final image path you can reference in your code.\n\nHere is an example:\n\n```js\nimport React from 'react';\nimport logo from './logo.png'; // Tell Webpack this JS file uses this image\n\nconsole.log(logo); // /84287d09b8053c6fa598893b8910786a.png\n\nfunction Header() {\n  // Import result is the URL of your image\n  return \u003cimg src={logo} alt=\"Logo\" /\u003e;\n}\n\nexport default function Header;\n```\n\nThis works in CSS too:\n\n```css\n.Logo {\n  background-image: url(./logo.png);\n}\n```\n\nWebpack finds all relative module references in CSS (they start with `./`) and replaces them with the final paths from the compiled bundle. If you make a typo or accidentally delete an important file, you will see a compilation error, just like when you import a non-existent JavaScript module. The final filenames in the compiled bundle are generated by Webpack from content hashes. If the file content changes in the future, Webpack will give it a different name in production so you don’t need to worry about long-term caching of assets.\n\nPlease be advised that this is also a custom feature of Webpack.\n\n**It is not required for React** but many people enjoy it (and React Native uses a similar mechanism for images). However it may not be portable to some other environments, such as Node.js and Browserify. If you prefer to reference static assets in a more traditional way outside the module system, please let us know [in this issue](https://github.com/facebookincubator/create-react-app/issues/28), and we will consider support for this.\n\n### Adding Flow\n\nFlow typing is currently [not supported out of the box](https://github.com/facebookincubator/create-react-app/issues/72) with the default `.flowconfig` generated by Flow. If you run it, you might get errors like this:\n\n```\nnode_modules/fbjs/lib/Deferred.js.flow:60\n 60:     Promise.prototype.done.apply(this._promise, arguments);\n                           ^^^^ property `done`. Property not found in\n495: declare class Promise\u003c+R\u003e {\n     ^ Promise. See lib: /private/tmp/flow/flowlib_34952d31/core.js:495\n\nnode_modules/fbjs/lib/shallowEqual.js.flow:29\n 29:     return x !== 0 || 1 / (x: $FlowIssue) === 1 / (y: $FlowIssue);\n                                   ^^^^^^^^^^ identifier `$FlowIssue`. Could not resolve name\n\nsrc/App.js:3\n  3: import logo from './logo.svg';\n                      ^^^^^^^^^^^^ ./logo.svg. Required module not found\n\nsrc/App.js:4\n  4: import './App.css';\n            ^^^^^^^^^^^ ./App.css. Required module not found\n\nsrc/index.js:5\n  5: import './index.css';\n            ^^^^^^^^^^^^^ ./index.css. Required module not found\n```\n\nTo fix this, change your `.flowconfig` to look like this:\n\n```\n[libs]\n./node_modules/fbjs/flow/lib\n\n[options]\nesproposal.class_static_fields=enable\nesproposal.class_instance_fields=enable\n\nmodule.name_mapper='^\\(.*\\)\\.css$' -\u003e 'react-scripts/config/flow/css'\nmodule.name_mapper='^\\(.*\\)\\.\\(jpg\\|png\\|gif\\|eot\\|svg\\|ttf\\|woff\\|woff2\\|mp4\\|webm\\)$' -\u003e 'react-scripts/config/flow/file'\n\nsuppress_type=$FlowIssue\nsuppress_type=$FlowFixMe\n```\n\nRe-run flow, and you sholdn’t get any extra issues.\n\nIf you later `eject`, you’ll need to replace `react-scripts` references with the `\u003cPROJECT_ROOT\u003e` placeholder, for example:\n\n```\nmodule.name_mapper='^\\(.*\\)\\.css$' -\u003e '\u003cPROJECT_ROOT\u003e/config/flow/css'\nmodule.name_mapper='^\\(.*\\)\\.\\(jpg\\|png\\|gif\\|eot\\|svg\\|ttf\\|woff\\|woff2\\|mp4\\|webm\\)$' -\u003e '\u003cPROJECT_ROOT\u003e/config/flow/file'\n```\n\nWe will consider integrating more tightly with Flow in the future so that you don’t have to do this.\n\n### Something Missing?\n\nIf you have ideas for more “How To” recipes that should be on this page, [let us know](https://github.com/facebookincubator/create-react-app/issues) or [contribute some!](https://github.com/facebookincubator/create-react-app/edit/master/template/README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaechabin%2Fcreate-react-app-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaechabin%2Fcreate-react-app-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaechabin%2Fcreate-react-app-sample/lists"}