| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/tree/*name(/*path) |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:67c23769-56a8-c516-5ab4-9e9bde93d85c |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | 95BA:3988A1:1B117BD:24D32C4:6AFB9415 |
| html-safe-nonce | 72865aa2533d63d7aae003a1361817f5b4b9df3530221633bb7b2423a7ca5b6e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUJBOjM5ODhBMToxQjExN0JEOjI0RDMyQzQ6NkFGQjk0MTUiLCJ2aXNpdG9yX2lkIjoiNTk1NjMyNDE1NzU2OTA3ODI5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fe928c76c55125f2d1f950156feaaf7f246e0413a52a43ece66a321336e76552 |
| hovercard-subject-tag | repository:479905855 |
| github-keyboard-shortcuts | repository,source-code,file-tree,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///files/disambiguate |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode |
| twitter:image | https://opengraph.githubassets.com/6bd6b6a6cf5692cfa6b3e4635ca88d75d40c8778539c825bf08f51b8a18f2d9e/XC3P/JavaScript-by-Example |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6bd6b6a6cf5692cfa6b3e4635ca88d75d40c8778539c825bf08f51b8a18f2d9e/XC3P/JavaScript-by-Example |
| og:image:alt | JavaScript by Example, published by Packt. Contribute to XC3P/JavaScript-by-Example development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4f01efe06174a5ba6342fd58e42d02295e0675bedbb465d6bef2dbaec8e46556 |
| turbo-cache-control | no-cache |
| go-import | github.com/XC3P/JavaScript-by-Example git https://github.com/XC3P/JavaScript-by-Example.git |
| octolytics-dimension-user_id | 58593858 |
| octolytics-dimension-user_login | XC3P |
| octolytics-dimension-repository_id | 479905855 |
| octolytics-dimension-repository_nwo | XC3P/JavaScript-by-Example |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 102062896 |
| octolytics-dimension-repository_parent_nwo | kalyans12/JavaScript-by-Example |
| octolytics-dimension-repository_network_root_id | 102062896 |
| octolytics-dimension-repository_network_root_nwo | kalyans12/JavaScript-by-Example |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a52db8866b6543b4e83730cd6a6b1360f1a9e4dc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FXC3P%2FJavaScript-by-Example%2Ftree%2Fmaster%2FChapter06%2FCompletedCode |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FXC3P%2FJavaScript-by-Example%2Ftree%2Fmaster%2FChapter06%2FCompletedCode |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Ffiles%2Fdisambiguate&source=header-repo&source_repo=XC3P%2FJavaScript-by-Example |
| Reload | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode |
| Reload | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode |
| Reload | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode |
| XC3P | https://github.com/XC3P |
| JavaScript-by-Example | https://github.com/XC3P/JavaScript-by-Example |
| Code | https://github.com/XC3P/JavaScript-by-Example |
| Pull requests | https://github.com/XC3P/JavaScript-by-Example/pulls |
| Actions | https://github.com/XC3P/JavaScript-by-Example/actions |
| Projects | https://github.com/XC3P/JavaScript-by-Example/projects |
| Security and quality | https://github.com/XC3P/JavaScript-by-Example/security |
| Insights | https://github.com/XC3P/JavaScript-by-Example/pulse |
| https://github.com/XC3P/JavaScript-by-Example |
| JavaScript-by-Example | https://github.com/XC3P/JavaScript-by-Example/tree/master |
| Chapter06 | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06 |
| History | https://github.com/XC3P/JavaScript-by-Example/commits/master/Chapter06/CompletedCode |
| https://github.com/XC3P/JavaScript-by-Example/commits/master/Chapter06/CompletedCode |
| JavaScript-by-Example | https://github.com/XC3P/JavaScript-by-Example/tree/master |
| Chapter06 | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06 |
| .. | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06 |
| public | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode/public |
| public | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode/public |
| src | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode/src |
| src | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode/src |
| .env.example | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/.env.example |
| .env.example | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/.env.example |
| .gitignore | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/.gitignore |
| .gitignore | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/.gitignore |
| README.md | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/README.md |
| README.md | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/README.md |
| npm-shrinkwrap.json | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/npm-shrinkwrap.json |
| npm-shrinkwrap.json | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/npm-shrinkwrap.json |
| package.json | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/package.json |
| package.json | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/package.json |
| yarn.lock | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/yarn.lock |
| yarn.lock | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/yarn.lock |
| README.md | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#readme |
| Create React App | https://github.com/facebookincubator/create-react-app |
| here | https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#table-of-contents |
| Updating to New Releases | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#updating-to-new-releases |
| Sending Feedback | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#sending-feedback |
| Folder Structure | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#folder-structure |
| Available Scripts | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#available-scripts |
| npm start | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-start |
| npm test | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-test |
| npm run build | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-run-build |
| npm run eject | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-run-eject |
| Supported Language Features and Polyfills | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#supported-language-features-and-polyfills |
| Syntax Highlighting in the Editor | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#syntax-highlighting-in-the-editor |
| Displaying Lint Output in the Editor | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#displaying-lint-output-in-the-editor |
| Debugging in the Editor | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#debugging-in-the-editor |
| Formatting Code Automatically | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#formatting-code-automatically |
| Changing the Page | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#changing-the-page-title |
| Installing a Dependency | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#installing-a-dependency |
| Importing a Component | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#importing-a-component |
| Code Splitting | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#code-splitting |
| Adding a Stylesheet | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-a-stylesheet |
| Post-Processing CSS | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#post-processing-css |
| Adding a CSS Preprocessor (Sass, Less etc.) | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-a-css-preprocessor-sass-less-etc |
| Adding Images, Fonts, and Files | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-images-fonts-and-files |
| Using the public Folder | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#using-the-public-folder |
| Changing the HTML | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#changing-the-html |
| Adding Assets Outside of the Module System | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-assets-outside-of-the-module-system |
| When to Use the public Folder | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#when-to-use-the-public-folder |
| Using Global Variables | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#using-global-variables |
| Adding Bootstrap | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-bootstrap |
| Using a Custom Theme | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#using-a-custom-theme |
| Adding Flow | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-flow |
| Adding Custom Environment Variables | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-custom-environment-variables |
| Referencing Environment Variables in the HTML | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#referencing-environment-variables-in-the-html |
| Adding Temporary Environment Variables In Your Shell | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-temporary-environment-variables-in-your-shell |
| Adding Development Environment Variables In .env | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-development-environment-variables-in-env |
| Can I Use Decorators? | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#can-i-use-decorators |
| Integrating with an API Backend | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#integrating-with-an-api-backend |
| Node | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#node |
| Ruby on Rails | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#ruby-on-rails |
| Proxying API Requests in Development | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#proxying-api-requests-in-development |
| "Invalid Host Header" Errors After Configuring Proxy | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#invalid-host-header-errors-after-configuring-proxy |
| Configuring the Proxy Manually | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#configuring-the-proxy-manually |
| Configuring a WebSocket Proxy | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#configuring-a-websocket-proxy |
| Using HTTPS in Development | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#using-https-in-development |
| Generating Dynamic Tags on the Server | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#generating-dynamic-meta-tags-on-the-server |
| Pre-Rendering into Static HTML Files | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#pre-rendering-into-static-html-files |
| Injecting Data from the Server into the Page | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#injecting-data-from-the-server-into-the-page |
| Running Tests | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#running-tests |
| Filename Conventions | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#filename-conventions |
| Command Line Interface | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#command-line-interface |
| Version Control Integration | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#version-control-integration |
| Writing Tests | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#writing-tests |
| Testing Components | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#testing-components |
| Using Third Party Assertion Libraries | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#using-third-party-assertion-libraries |
| Initializing Test Environment | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#initializing-test-environment |
| Focusing and Excluding Tests | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#focusing-and-excluding-tests |
| Coverage Reporting | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#coverage-reporting |
| Continuous Integration | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#continuous-integration |
| Disabling jsdom | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#disabling-jsdom |
| Snapshot Testing | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#snapshot-testing |
| Editor Integration | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#editor-integration |
| Developing Components in Isolation | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#developing-components-in-isolation |
| Getting Started with Storybook | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#getting-started-with-storybook |
| Getting Started with Styleguidist | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#getting-started-with-styleguidist |
| Making a Progressive Web App | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#making-a-progressive-web-app |
| Opting Out of Caching | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#opting-out-of-caching |
| Offline-First Considerations | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#offline-first-considerations |
| Progressive Web App Metadata | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#progressive-web-app-metadata |
| Analyzing the Bundle Size | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#analyzing-the-bundle-size |
| Deployment | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#deployment |
| Static Server | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#static-server |
| Other Solutions | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#other-solutions |
| Serving Apps with Client-Side Routing | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#serving-apps-with-client-side-routing |
| Building for Relative Paths | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#building-for-relative-paths |
| Azure | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#azure |
| Firebase | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#firebase |
| GitHub Pages | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#github-pages |
| Heroku | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#heroku |
| Modulus | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#modulus |
| Netlify | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#netlify |
| Now | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#now |
| S3 and CloudFront | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#s3-and-cloudfront |
| Surge | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#surge |
| Advanced Configuration | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#advanced-configuration |
| Troubleshooting | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#troubleshooting |
| npm start doesn’t detect changes | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-start-doesnt-detect-changes |
| npm test hangs on macOS Sierra | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-test-hangs-on-macos-sierra |
| npm run build exits too early | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-run-build-exits-too-early |
| npm run build fails on Heroku | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-run-build-fails-on-heroku |
| npm run build fails to minify | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-run-build-fails-to-minify |
| Moment.js locales are missing | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#momentjs-locales-are-missing |
| Something Missing? | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#something-missing |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#updating-to-new-releases |
| open the changelog | https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md |
| changelog | https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#sending-feedback |
| your feedback | https://github.com/facebookincubator/create-react-app/issues |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#folder-structure |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#available-scripts |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-start |
| http://localhost:3000 | http://localhost:3000 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-test |
| running tests | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#running-tests |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-run-build |
| deployment | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#deployment |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-run-eject |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#supported-language-features-and-polyfills |
| ES6 | https://github.com/lukehoban/es6features |
| Exponentiation Operator | https://github.com/rwaldron/exponentiation-operator |
| Async/await | https://github.com/tc39/ecmascript-asyncawait |
| Object Rest/Spread Properties | https://github.com/sebmarkbage/ecmascript-rest-spread |
| Dynamic import() | https://github.com/tc39/proposal-dynamic-import |
| Class Fields and Static Properties | https://github.com/tc39/proposal-class-public-fields |
| JSX | https://facebook.github.io/react/docs/introducing-jsx.html |
| Flow | https://flowtype.org/ |
| different proposal stages | https://babeljs.io/docs/plugins/#presets-stage-x-experimental-presets- |
| codemods | https://medium.com/@cpojer/effective-javascript-codemods-5a6686bb46fb |
| polyfills | https://en.wikipedia.org/wiki/Polyfill |
| Object.assign() | https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign |
| object-assign | https://github.com/sindresorhus/object-assign |
| Promise | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise |
| promise | https://github.com/then/promise |
| fetch() | https://developer.mozilla.org/en/docs/Web/API/Fetch_API |
| whatwg-fetch | https://github.com/github/fetch |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#syntax-highlighting-in-the-editor |
| relevant Babel documentation page | https://babeljs.io/docs/editors |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#displaying-lint-output-in-the-editor |
| Prettier | https://github.com/jlongster/prettier |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#debugging-in-the-editor |
| Visual Studio Code | https://code.visualstudio.com |
| VS Code | https://code.visualstudio.com |
| Chrome Debugger Extension | https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#formatting-code-automatically |
| Prettier's GitHub page | https://github.com/prettier/prettier |
| page to see it in action | https://prettier.github.io/prettier/ |
| blog post about lint-staged to learn more about it | https://medium.com/@okonetchnikov/make-linting-great-again-f3890e1ad6b8 |
| Editor Integration | https://github.com/prettier/prettier#editor-integration |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#changing-the-page-title |
| adding a stylesheet | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-a-stylesheet |
| document.title | https://developer.mozilla.org/en-US/docs/Web/API/Document/title |
| React Helmet | https://github.com/nfl/react-helmet |
| this section | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#generating-dynamic-meta-tags-on-the-server |
| here | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#pre-rendering-into-static-html-files |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#installing-a-dependency |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#importing-a-component |
| import and export | http://exploringjs.com/es6/ch_modules.html |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#buttonjs |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#dangerbuttonjs |
| 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 |
| 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 |
| Exploring ES6: Modules | http://exploringjs.com/es6/ch_modules.html |
| Understanding ES6: Modules | https://leanpub.com/understandinges6/read#leanpub-auto-encapsulating-code-with-modules |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#code-splitting |
| dynamic import() | http://2ality.com/2017/01/import-operator.html#loading-code-on-demand |
| proposal | https://github.com/tc39/proposal-dynamic-import |
| Promise | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#moduleajs |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#appjs |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#with-react-router |
| this tutorial | http://serverless-stack.com/chapters/code-splitting-in-create-react-app.html |
| here | https://github.com/AnomalyInnovations/serverless-stack-demo-client/tree/code-splitting-in-create-react-app |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-a-stylesheet |
| Webpack | https://webpack.js.org/ |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#buttoncss |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#buttonjs-1 |
| here | https://medium.com/seek-ui-engineering/block-element-modifying-your-javascript-components-d7f99fcab52b |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#post-processing-css |
| Autoprefixer | https://github.com/postcss/autoprefixer |
| follow this section | https://github.com/postcss/autoprefixer#disabling |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-a-css-preprocessor-sass-less-etc |
| not inherit | https://facebook.github.io/react/docs/composition-vs-inheritance.html |
| #1939 | https://github.com/facebookincubator/create-react-app/issues/1939 |
| #1891 | https://github.com/sass/node-sass/issues/1891 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-images-fonts-and-files |
| data URI | https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs |
| #1153 | https://github.com/facebookincubator/create-react-app/issues/1153 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#using-the-public-folder |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#changing-the-html |
| set the page title | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#changing-the-page-title |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-assets-outside-of-the-module-system |
| adding a stylesheet | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-a-stylesheet |
| adding images and fonts | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-images-fonts-and-files |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#when-to-use-the-public-folder |
| stylesheets | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-a-stylesheet |
| images, and fonts | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-images-fonts-and-files |
| manifest.webmanifest | https://developer.mozilla.org/en-US/docs/Web/Manifest |
| pace.js | http://github.hubspot.com/pace/docs/welcome/ |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#using-global-variables |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-bootstrap |
| React Bootstrap | https://react-bootstrap.github.io |
| App.js | https://gist.githubusercontent.com/gaearon/85d8c067f6af1e56277c82d19fd4da7b/raw/6158dd991b67284e9fc8d70b9d973efe87659d72/App.js |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#using-a-custom-theme |
| customized Bootstrap | https://medium.com/@tacomanator/customizing-create-react-app-aa9ffb88165 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-flow |
| introduction to using static types in JavaScript | https://medium.com/@preethikasireddy/why-use-static-types-in-javascript-part-1-8382da1e0adb |
| Flow | http://flowtype.org/ |
| .flowconfig file | https://flowtype.org/docs/advanced-configuration.html |
| Nuclide | https://nuclide.io/docs/languages/flow/ |
| its documentation | https://flowtype.org/ |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-custom-environment-variables |
| described here | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#injecting-data-from-the-server-into-the-page |
| exposing a private key on the machine that could have the same name | https://github.com/facebookincubator/create-react-app/issues/865#issuecomment-252199527 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#referencing-environment-variables-in-the-html |
| follow this approach instead | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#generating-dynamic-meta-tags-on-the-server |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-temporary-environment-variables-in-your-shell |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#windows-cmdexe |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#linux-macos-bash |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-development-environment-variables-in-env |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#what-other-env-files-are-can-be-used |
| dotenv documentation | https://github.com/motdotla/dotenv |
| Travis CI | https://docs.travis-ci.com/user/environment-variables/ |
| Heroku | https://devcenter.heroku.com/articles/config-vars |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#can-i-use-decorators |
| decorators | https://medium.com/google-developers/exploring-es7-decorators-76ecb65fb841 |
| #214 | https://github.com/facebookincubator/create-react-app/issues/214 |
| #411 | https://github.com/facebookincubator/create-react-app/issues/411 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#integrating-with-an-api-backend |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#node |
| this tutorial | https://www.fullstackreact.com/articles/using-create-react-app-with-a-server/ |
| here | https://github.com/fullstackreact/food-lookup-demo |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#ruby-on-rails |
| this tutorial | https://www.fullstackreact.com/articles/how-to-get-create-react-app-to-work-with-your-rails-api/ |
| here | https://github.com/fullstackreact/food-lookup-demo-rails |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#proxying-api-requests-in-development |
| CORS issues | http://stackoverflow.com/questions/21854516/understanding-ajax-cors-and-security-considerations |
| Configure the proxy yourself | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#configuring-the-proxy-manually |
| here’s how to do it for Express | http://enable-cors.org/server_expressjs.html |
| environment variables | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-custom-environment-variables |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#invalid-host-header-errors-after-configuring-proxy |
| this article | https://medium.com/webpack/webpack-dev-server-middleware-security-issues-1489d950874a |
| this issue | https://github.com/webpack/webpack-dev-server/issues/887 |
| described here | https://github.com/facebookincubator/create-react-app/issues/2271 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#configuring-the-proxy-manually |
| http-proxy-middleware | https://github.com/chimurai/http-proxy-middleware#options |
| http-proxy | https://github.com/nodejitsu/node-http-proxy#options |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#configuring-a-websocket-proxy |
| Socket.io | https://socket.io/ |
| the websocket.org echo test | http://websocket.org/echo.html |
| setting up a Socket.io server | https://socket.io/docs/ |
| ws | https://github.com/websockets/ws |
| native WebSockets in the browser | https://developer.mozilla.org/en-US/docs/Web/API/WebSocket |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#using-https-in-development |
| the "proxy" feature | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#proxying-api-requests-in-development |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#windows-cmdexe-1 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#linux-macos-bash-1 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#generating-dynamic-meta-tags-on-the-server |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#pre-rendering-into-static-html-files |
| react-snapshot | https://www.npmjs.com/package/react-snapshot |
| zero-configuration pre-rendering (also called snapshotting) here | https://medium.com/superhighfives/an-almost-static-stack-6df0a2791319 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#injecting-data-from-the-server-into-the-page |
| sanitize the JSON before sending it to the client | https://medium.com/node-security/the-most-common-xss-vulnerability-in-react-js-applications-2bdffbcc1fa0 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#running-tests |
| Read the migration guide to learn how to enable it in older projects! | https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md#migrating-from-023-to-030 |
| Jest | https://facebook.github.io/jest/ |
| major revamp | https://facebook.github.io/jest/blog/2016/09/01/jest-15.html |
| jsdom | https://github.com/tmpvar/jsdom |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#filename-conventions |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#command-line-interface |
| https://camo.githubusercontent.com/c5688eb267da23e461cdc2e4b4297b56d47e18a2f9bb6907826ac567d93c194e/687474703a2f2f66616365626f6f6b2e6769746875622e696f2f6a6573742f696d672f626c6f672f31352d77617463682e676966 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#version-control-integration |
| continuous integration | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#continuous-integration |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#writing-tests |
| extensively documented here | http://facebook.github.io/jest/docs/expect.html |
| jest.fn() and expect(fn).toBeCalled() | http://facebook.github.io/jest/docs/expect.html#tohavebeencalled |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#testing-components |
| shallow() rendering API | http://airbnb.io/enzyme/docs/api/shallow.html |
| Enzyme | http://airbnb.io/enzyme/ |
| full rendering with mount() | http://airbnb.io/enzyme/docs/api/mount.html |
| Enzyme documentation | http://airbnb.io/enzyme/ |
| extensively documented here | http://facebook.github.io/jest/docs/expect.html |
| Chai | http://chaijs.com/ |
| jest-enzyme | https://github.com/blainekasten/enzyme-matchers |
| src/setupTests.js | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#initializing-test-environment |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#using-third-party-assertion-libraries |
| file those against Jest | https://github.com/facebook/jest/issues/new |
| pretty-printing React elements as JSX | https://github.com/facebook/jest/pull/1566 |
| Chai | http://chaijs.com/ |
| Sinon | http://sinonjs.org/ |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#initializing-test-environment |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#srcsetuptestsjs |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#focusing-and-excluding-tests |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#coverage-reporting |
| https://camo.githubusercontent.com/bf43fffa37eded34ba3897bfc3d672a0ea50a2a4b24575fdb20829363f72756f/687474703a2f2f692e696d6775722e636f6d2f356246686e54532e706e67 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#continuous-integration |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#on-ci-servers |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#travis-ci |
| Travis Getting started | https://docs.travis-ci.com/user/getting-started/ |
| profile | https://travis-ci.org/profile |
| Customize your Travis CI Build | https://docs.travis-ci.com/user/customizing-the-build/ |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#circleci |
| this article | https://medium.com/@knowbody/circleci-and-zeits-now-sh-c9b7eebcd3c1 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#on-your-own-environment |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#windows-cmdexe-2 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#linux-macos-bash-2 |
| file an issue | https://github.com/facebookincubator/create-react-app/issues/new |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#disabling-jsdom |
| jsdom | https://github.com/tmpvar/jsdom |
| ReactDOM.render() | https://facebook.github.io/react/docs/top-level-api.html#reactdom.render |
| TestUtils.renderIntoDocument() | https://facebook.github.io/react/docs/test-utils.html#renderintodocument |
| a shortcut | https://github.com/facebook/react/blob/34761cf9a252964abfaab6faf74d473ad95d1f21/src/test/ReactTestUtils.js#L83-L91 |
| mount() | http://airbnb.io/enzyme/docs/api/mount.html |
| Enzyme | http://airbnb.io/enzyme/index.html |
| TestUtils.createRenderer() | https://facebook.github.io/react/docs/test-utils.html#shallow-rendering |
| shallow() | http://airbnb.io/enzyme/docs/api/shallow.html |
| Enzyme | http://airbnb.io/enzyme/index.html |
| snapshot testing | http://facebook.github.io/jest/blog/2016/07/27/jest-14.html |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#snapshot-testing |
| Read more about snapshot testing. | http://facebook.github.io/jest/blog/2016/07/27/jest-14.html |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#editor-integration |
| Visual Studio Code | https://code.visualstudio.com |
| Jest extension | https://github.com/orta/vscode-jest |
| https://cloud.githubusercontent.com/assets/49038/20795349/a032308a-b7c8-11e6-9b34-7eeac781003f.png |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#developing-components-in-isolation |
| Storybook for React | https://storybook.js.org |
| source | https://github.com/storybooks/storybook |
| React Styleguidist | https://react-styleguidist.js.org/ |
| source | https://github.com/styleguidist/react-styleguidist |
| https://camo.githubusercontent.com/e98502358c7096c422ca1f20deec4c5280b623dd8b9a2f59c06b5ce3c31cab79/687474703a2f2f692e696d6775722e636f6d2f374349415770422e676966 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#getting-started-with-storybook |
| Getting Started with React Storybook | https://egghead.io/lessons/react-getting-started-with-react-storybook |
| GitHub Repo | https://github.com/storybooks/storybook |
| Documentation | https://storybook.js.org/basics/introduction/ |
| Snapshot Testing UI | https://github.com/storybooks/storybook/tree/master/addons/storyshots |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#getting-started-with-styleguidist |
| GitHub Repo | https://github.com/styleguidist/react-styleguidist |
| Documentation | https://react-styleguidist.js.org/docs/getting-started.html |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#making-a-progressive-web-app |
| Progressive Web App | https://developers.google.com/web/progressive-web-apps/ |
| sw-precache-webpack-plugin | https://github.com/goldhand/sw-precache-webpack-plugin |
| cache-first strategy | https://developers.google.com/web/fundamentals/instant-and-offline/offline-cookbook/#cache-falling-back-to-network |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#opting-out-of-caching |
| src/index.js | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/src/index.js |
| src/index.js | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/src/index.js |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#offline-first-considerations |
| require HTTPS | https://developers.google.com/web/fundamentals/getting-started/primers/service-workers#you_need_https |
| does not apply to localhost | http://stackoverflow.com/questions/34160509/options-for-testing-service-workers-via-http/34161385#34161385 |
| not currently supported | https://jakearchibald.github.io/isserviceworkerready/ |
| won't be attempted | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/src/registerServiceWorker.js |
| production environment | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#deployment |
| deployment instructions | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#deployment |
| with HTTP caching disabled | http://stackoverflow.com/questions/38843970/service-worker-javascript-update-frequency-every-24-hours |
| GitHub Pages | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#github-pages |
| let the user know | https://developers.google.com/web/fundamentals/instant-and-offline/offline-ux#inform_the_user_when_the_app_is_ready_for_offline_consumption |
| src/registerServiceWorker.js | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/src/registerServiceWorker.js |
| API requests | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#integrating-with-an-api-backend |
| eject | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-run-eject |
| runtimeCaching | https://github.com/GoogleChrome/sw-precache#runtimecaching-arrayobject |
| webpack.config.prod.js | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/config/webpack.config.prod.js |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#progressive-web-app-metadata |
| public/manifest.json | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/public/manifest.json |
| manifest.json | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/CompletedCode/public/manifest.json |
| The Web App Manifest guide | https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/ |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#analyzing-the-bundle-size |
| Source map explorer | https://www.npmjs.com/package/source-map-explorer |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#deployment |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#static-server |
| Node | https://nodejs.org/ |
| serve | https://github.com/zeit/serve |
| serve | https://github.com/zeit/serve |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#other-solutions |
| Node | https://nodejs.org/ |
| Express | http://expressjs.com/ |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#serving-apps-with-client-side-routing |
| pushState history API | https://developer.mozilla.org/en-US/docs/Web/API/History_API#Adding_and_modifying_history_entries |
| React Router | https://github.com/ReactTraining/react-router |
| Apache HTTP Server | https://httpd.apache.org/ |
| Apache Tomcat | http://tomcat.apache.org/ |
| this Stack Overflow answer | https://stackoverflow.com/a/41249464/4878474 |
| service workers | https://developers.google.com/web/fundamentals/getting-started/primers/service-workers |
| ejecting | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-run-eject |
| navigateFallback | https://github.com/GoogleChrome/sw-precache#navigatefallback-string |
| navigateFallbackWhitelist | https://github.com/GoogleChrome/sw-precache#navigatefallbackwhitelist-arrayregexp |
| configuration | https://github.com/XC3P/JavaScript-by-Example/blob/master/Chapter06/config/webpack.config.prod.js |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#building-for-relative-paths |
| here | https://reacttraining.com/react-router/web/api/BrowserRouter/basename-string |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#serving-the-same-build-from-different-paths |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#azure |
| this | https://medium.com/@to_pe/deploying-create-react-app-on-microsoft-azure-c0f6686a4321 |
| Microsoft Azure | https://azure.microsoft.com/ |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#firebase |
| Firebase account | https://console.firebase.google.com/ |
| Add Firebase to your JavaScript Project | https://firebase.google.com/docs/web/setup |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#github-pages |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#step-1-add-homepage-to-packagejson |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#step-2-install-gh-pages-and-add-deploy-to-scripts-in-packagejson |
| https://myusername.github.io/my-app | https://myusername.github.io/my-app |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#step-3-deploy-the-site-by-running-npm-run-deploy |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#step-4-ensure-your-projects-settings-use-gh-pages |
| https://camo.githubusercontent.com/bcd3bfb628a2e58ab1c8ec49e0e5b559bfa3c759d63d79be09ec7832f278d4e4/687474703a2f2f692e696d6775722e636f6d2f48556a4572396c2e706e67 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#step-5-optionally-configure-the-domain |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#notes-on-client-side-routing |
| Read more | https://reacttraining.com/react-router/web/api/Router |
| in this guide | https://github.com/rafrex/spa-github-pages |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#heroku |
| Heroku Buildpack for Create React App | https://github.com/mars/create-react-app-buildpack |
| Deploying React with Zero Configuration | https://blog.heroku.com/deploying-react-with-zero-configuration |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#resolving-heroku-deployment-errors |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#module-not-found-error-cannot-resolve-file-or-directory |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#could-not-find-a-required-file |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#modulus |
| Modulus blog post | http://blog.modulus.io/deploying-react-apps-on-modulus |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#netlify |
| Start a new netlify project | https://app.netlify.com/signup |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#now |
| now | https://zeit.co/now |
| desktop tool | https://zeit.co/download |
| this article. | https://zeit.co/blog/unlimited-static |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#s3-and-cloudfront |
| blog post | https://medium.com/@omgwtfmarc/deploying-create-react-app-to-s3-or-cloudfront-48dae4ce0af |
| S3 | https://aws.amazon.com/s3 |
| CloudFront | https://aws.amazon.com/cloudfront/ |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#surge |
| ensures that every URL falls back to that file | https://surge.sh/help/adding-a-200-page-for-client-side-routing |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#advanced-configuration |
| .env | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#adding-development-environment-variables-in-env |
| browser | https://github.com/sindresorhus/opn#app |
| package.json (homepage) | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#building-for-relative-paths |
| send a pull request to detect your editor of choice | https://github.com/facebookincubator/create-react-app/issues/2636 |
| PATH | https://en.wikipedia.org/wiki/PATH_(variable) |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#troubleshooting |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-start-doesnt-detect-changes |
| need to restart the watcher | https://github.com/facebookincubator/create-react-app/issues/1164 |
| “Adjusting Your Text Editor” | https://webpack.js.org/guides/development/#adjusting-your-text-editor |
| Webpack watcher bug | https://github.com/webpack/watchpack/issues/42 |
| tweak system settings | https://webpack.github.io/docs/troubleshooting.html#not-enough-watchers |
| in this thread | https://github.com/facebookincubator/create-react-app/issues/659 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-test-hangs-on-macos-sierra |
| Watchman | https://facebook.github.io/watchman/ |
| facebookincubator/create-react-app#713 | https://github.com/facebookincubator/create-react-app/issues/713 |
| facebook/jest#1767 | https://github.com/facebook/jest/issues/1767 |
| facebook/watchman#358 | https://github.com/facebook/watchman/issues/358 |
| ember-cli/ember-cli#6259 | https://github.com/ember-cli/ember-cli/issues/6259 |
| Homebrew | http://brew.sh/ |
| other installation methods | https://facebook.github.io/watchman/docs/install.html#build-install |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-run-build-exits-too-early |
| adding some swap space | https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04 |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-run-build-fails-on-heroku |
| this section | https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#resolving-heroku-deployment-errors |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#momentjs-locales-are-missing |
| Moment.js | https://momentjs.com/ |
| all the locales provided by Moment.js | https://momentjs.com/#multiple-locale-support |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#npm-run-build-fails-to-minify |
| https://github.com/XC3P/JavaScript-by-Example/tree/master/Chapter06/CompletedCode#something-missing |
| let us know | https://github.com/facebookincubator/create-react-app/issues |
| contribute some! | https://github.com/facebookincubator/create-react-app/edit/master/packages/react-scripts/template/README.md |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |