git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| { | |
| "parser": "babel-eslint", | |
| "extends": ["airbnb", "prettier", "prettier/react"], | |
| "plugins": ["prettier"], | |
| "env": { | |
| "browser": true, | |
| "node": true | |
| }, | |
| "rules": { | |
| "react/jsx-filename-extension": [1, { "extensions": [".js"] }], |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
Note:
When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.
If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| #!/usr/bin/env node | |
| const request = require('request'); | |
| const AWS = require('aws-sdk'); | |
| const rekognition = new AWS.Rekognition({ | |
| // Detect moderation labels is available on AWS region us-east-1, us-west-2 and eu-west-1 | |
| region: "us-west-2", | |
| accessKeyId: "YOUR accessKeyId", | |
| secretAccessKey: "YOUR secretAccessKey" |
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import App from './App/App'; | |
| import './index.css'; | |
| const render = () => { | |
| ReactDOM.render(<App />, document.getElementById('root')); | |
| } | |
| if ( |
| [alias] | |
| co = checkout | |
| cob = checkout -b | |
| coo = !git fetch && git checkout | |
| br = branch | |
| brd = branch -d | |
| brD = branch -D | |
| merged = branch --merged | |
| dmerged = "git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d" | |
| st = status |
| // NOTE: This is NOT how you'd normally use suspense. | |
| // You'll either use react-cache or libraries that use react-cache. | |
| // This is only for instructional purposes. | |
| const cache = {} | |
| function FetchPokemon({pokemonName}) { | |
| const pokemon = cache[pokemonName] | |
| if (!pokemon) { | |
| const promise = fetchPokemon(pokemonName).then( |
| const { createServer } = require('http'); | |
| createServer((req, res) => { | |
| res.writeHead(200, { | |
| Connection: 'Transfer-Encoding', | |
| 'Content-Type': 'text/html; charset=utf-8', | |
| 'Transfer-Encoding': 'chunked' | |
| }); | |
| res.write(` |