npm install --save-dev @babel/register @babel/plugin-proposal-class-properties
- or -
yarn add --dev @babel/register @babel/plugin-proposal-class-properties
{ | |
// [...] other settings | |
// Copy this whole thing in your settings.json file ↓↓↓ | |
"editor.tokenColorCustomizations": { | |
// NOTE: The asterisk targets all themes. If you want to target only specific ones | |
// you can use the following notation instead (example with three themes + wildcard): | |
// "[Atom One Dark][Default Dark+][*Monokai*]": { | |
"[*]": { | |
"textMateRules": [ | |
{ |
import React, { Component } from 'react'; | |
export default function withSyncChange(WrappedComponent) { | |
return class extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
value: props.value, // initial value | |
parentValue: props.value, // tracking the parent value | |
}; |
# Initial setup | |
git clone -o laravel -b master https://github.com/laravel/laravel.git project-name | |
cd project-name | |
git checkout --orphan master | |
git commit -m "Initial commit" | |
composer install | |
# --or, simply-- | |
composer create-project laravel/laravel | |
# Pulling changes |