awesome
Application made as a recruitment task. Technologies used: React.js, SCSS, Flexbox
https://github.com/f0kuz/awesome
Last synced: 1 day ago
JSON representation
Adding a CSS Preprocessor (Sass, Less etc.)
Adding Flow
- .flowconfig file - in the root directory.
Can I Use Decorators?
Deployment
GitHub Pages
- Read more - about different history implementations in React Router.
- in this guide - .
- Personal Access Token
Netlify
Developing Components in Isolation
Getting Started with Storybook
- Snapshot Testing UI - with Storybook + addon/storyshot
- GitHub Repo
- Getting Started with React Storybook
Getting Started with Styleguidist
Formatting Code Automatically
Importing a Component
DangerButton.js
Making a Progressive Web App
Offline-First Considerations
- not currently supported - in all web browsers. Service worker registration won't be attemptedon browsers that lack support.
-
let the user know
- when the service worker has finished populating your caches (showing a "This webapp works offline!" message) and also let them know when the service worker hasfetched the latest updates that will be available the next time they load thepage (showing a "New content is available; please refresh." message). Showingthis messages is currently left as an exercise to the developer, but as astarting point, you can make use of the logic included in
src/registerServiceWorker.js, whichdemonstrates which service worker lifecycle events to listen for to detect eachscenario, and which as a default, just logs appropriate messages to theJavaScript console. -
with HTTP caching disabled
- .If that's not possible—GitHub Pages, for instance, does notallow you to change the default 10 minute HTTP cache lifetime—then be awarethat if you visit your production site, and then revisit again before
service-worker.jshas expired from your HTTP cache, you'll continue to getthe previously cached assets from the service worker. If you have an immediateneed to view your updated production deployment, performing a shift-refreshwill temporarily disable the service worker and retrieve all assets from thenetwork.
Proxying API Requests in Development
Running Tests
Disabling jsdom
Supported Language Features and Polyfills
-
Promise
- via
promise. - Dynamic import() - (stage 3 proposal)
- Class Fields and Static Properties - (part of stage 3 proposal).
- Exponentiation Operator - (ES2016).
- Async/await - (ES2017).
- Object Rest/Spread Properties - (stage 3 proposal).
-
Object.assign()
- via
object-assign.
Troubleshooting
npm start doesn’t detect changes
- “Adjusting Your Text Editor” - .
- Webpack watcher bug - .
- tweak system settings - to allow more watchers.
- need to restart the watcher - due to a Webpack bug.
npm test hangs on macOS Sierra
Using the public Folder
When to Use the public Folder
- pace.js - outside of the bundled code.