Skip to main content

Posts

Fetch Quick Sheet

Fetch Quick Sheet Fetch Quick Sheet Fetch Fetch Quick Sheet Fetch fetch('/data.json') .then(response => response.json()) .then(data => { console.log(data) }) .catch(err => ...) Response fetch('/data.json') .then(res => { res.text() // response body (=> Promise) res.json() // parse via JSON (=> Promise) res.status //=> 200 res.statusText //=> 'OK' res.redirected //=> false res.ok //=> true res.url //=> 'http://site.com/data.json' res.type //=> 'basic' // ('cors' 'default' 'error' ...

React Interview Questions

10 Essential React Interview Questions For Aspiring Frontend Developers 10 Essential React Interview Questions For Aspiring Frontend Developers Comprehensive React Cheatsheet included at the bottom of this article! 10 Essential React Interview Questions For Aspiring Frontend Developers Comprehensive React Cheatsheet included at the bottom of this article! Resources: Introduction to React for Complete Beginners All of the code examples below will be included a second time at the bottom of ...

Emmet Cheat Sheet

Emmet Cheat Sheet Emmet Cheat Sheet EMMET Emmet Cheat Sheet EMMET The a toolkit for web-developers Introduction Emmet is a productivity toolkit for web developers that uses expressions to generate HTML snippets. Installation Normally, installation for Emmet should be a straight-forward process from the package-manager, as most of the modern text editors support Emmet. Usage You can use Emmet in two ways: ...

Creating a JAMstack Site with Open Authoring Using Netlify CMS (Repost)

Leverage the power of the community by creating a JAMstack site that anyone can edit and contribute using NetlifyCMS's open authoring. Community is powerful. The internet has often succeeded by channeling that power into "crowdsourcing" for things like raising funds or even managing content. The most obvious example of crowdsourced content would be Wikipedia, but sites like Medium or  DEV  also harness community-driven content contributions. Many projects and companies also rely on their communities to improve their documentation. When it comes to JAMstack sites, this community-driven content is often powered by straight GitHub forks and pull requests. This works well but requires a certain degree of technical knowledge as well as a bit of manual work (pulling the code, making the change, committing it, submitting the pull request and so on). This can be a real hindrance - especially if your goal is to get contributions from folks without a high degree of technical expert...