{"id":25268487,"url":"https://github.com/vmandic/react-dead-simple-intro","last_synced_at":"2026-02-21T14:33:41.450Z","repository":{"id":84267955,"uuid":"84547385","full_name":"vmandic/react-dead-simple-intro","owner":"vmandic","description":"A very 💀 simple guide for understanding the basics of React.js","archived":false,"fork":false,"pushed_at":"2017-03-17T21:49:26.000Z","size":166,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T05:02:44.427Z","etag":null,"topics":["demo","guide","react","reactjs","tutorial"],"latest_commit_sha":null,"homepage":null,"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/vmandic.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,"zenodo":null}},"created_at":"2017-03-10T10:16:11.000Z","updated_at":"2025-01-02T18:54:05.000Z","dependencies_parsed_at":"2023-05-24T05:00:37.249Z","dependency_job_id":null,"html_url":"https://github.com/vmandic/react-dead-simple-intro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vmandic/react-dead-simple-intro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmandic%2Freact-dead-simple-intro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmandic%2Freact-dead-simple-intro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmandic%2Freact-dead-simple-intro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmandic%2Freact-dead-simple-intro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmandic","download_url":"https://codeload.github.com/vmandic/react-dead-simple-intro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmandic%2Freact-dead-simple-intro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29683996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T14:31:22.911Z","status":"ssl_error","status_checked_at":"2026-02-21T14:31:22.570Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["demo","guide","react","reactjs","tutorial"],"created_at":"2025-02-12T10:29:50.034Z","updated_at":"2026-02-21T14:33:41.436Z","avatar_url":"https://github.com/vmandic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REACT 101\r\n\r\nThis project can help you and your team to grasp the basic setup for the React.js dev environment.\u003cbr /\u003e\r\nThis demo project is linked to a presentation about React.js I made, so take care to see it here: \u003ca href=\"http://slides.com/vmandic/react-101-v1/\"\u003ehttp://slides.com/vmandic/react-101-v1\u003c/a\u003e\r\n\r\n\u003cimg src=\"http://imgur.com/download/Z6toDov\" /\u003e\r\n\r\nPlease note that the setup is based on Mar 2017 npm packages.\r\n\r\n---\r\n\r\n# REACT DEV ENV SETUP\r\n\r\nBelow, a simple boilerplate to bootstrap a React dev env.\r\n\r\nThere are two main parts in this demo setup, those are:\u003cbr /\u003e\r\n1. **setting up the project and build system**\r\n2. **actually writing react**\r\n\r\n## 1. The Setup\r\n\r\n1. npm init\r\n    - in project root you will get a `package.json` file\r\n2. install react\r\n    - `$ npm i -S react react-dom`\r\n3. install Babel transpiler\r\n    - a transpiler tool that transforms JSX into JavaScript\r\n    - `$ npm i -D babel-core babel-loader babel-preset-react babel-preset-react`\r\n    - create in project root a `.babelrc` file\r\n        - save the following code inside: `{ presets: ['react'] }`\r\n4. install webpack build tool\r\n    - runs babel for transpilation\r\n    - minifying files, moving files, has a plugin system\r\n    - `$ npm i -D webpack webpack-dev-server html-webpack-plugin`\r\n    - create in project root a `webpack.config.js` file\r\n5. setup webpack with a basic config\r\n6. add HTMLWebPackPlugin\r\n    - basically creates a new `index.html` with working `\u003cscript\u003e\u003c/script\u003e` link/s in the output `\\dist` directory\r\n7. setup basic npm scripts\r\n    - `\"scripts\": {\r\n            \"build\": \"webpack\",\r\n            \"start\": \"webpack-dev-server\"\r\n        }`\r\n8. and finally start the app\r\n    - `$ npm start` that will start a NodeJS server with your React app and *hot module replacement* i.e. live editing on\r\n\r\n## 2. Writing the React App\r\n\r\n1. make an `index.js` and use `ReactDOM` to render your first root component, e.g. `\u003cApp /\u003e`\r\n2. be creative... explore and learn more of React.js! :)\r\n\r\nKind regards, \u003ca href=\"https://www.twitter.com/@vekzdran\"\u003e@vekzdran\u003c/a\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmandic%2Freact-dead-simple-intro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmandic%2Freact-dead-simple-intro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmandic%2Freact-dead-simple-intro/lists"}