- Contains only ingredients that need to be purchased
- Must be compatible with OurGroceries Direct Paste Import
Rules:
- One ingredient per line
This course introduces JavaScript developers to TypeScript while emphasizing Test-Driven Development (TDD). It focuses on leveraging TypeScript's static typing and tooling to improve software reliability and maintainability.
import { Image } from 'mdx-deck'
<Image src='https://source.unsplash.com/random/768x2048?cats' style={{ display: 'flex', alignItems: 'center',
| let UserContext = React.createContext(); | |
| class App extends React.Component { | |
| state = { | |
| user: null, | |
| setUser: user => { | |
| this.setState({ user }); | |
| } | |
| }; |
| // π₯ Node 7.6 has async/await! Here is a quick run down on how async/await works | |
| const axios = require('axios'); // promised based requests - like fetch() | |
| function getCoffee() { | |
| return new Promise(resolve => { | |
| setTimeout(() => resolve('β'), 2000); // it takes 2 seconds to make coffee | |
| }); | |
| } |
| // π₯ Node 7.6 has async/await! Here is a quick run down on how async/await works | |
| const axios = require('axios'); // promised based requests - like fetch() | |
| function getCoffee() { | |
| return new Promise(resolve => { | |
| setTimeout(() => resolve('β'), 2000); // it takes 2 seconds to make coffee | |
| }); | |
| } |
| import jsdom from 'jsdom'; | |
| const doc = jsdom.jsdom('<!doctype html><html><body></body></html>'); | |
| global.document = doc; | |
| global.window = doc.defaultView; |