In React's terminology, there are five core types that are important to distinguish:
React Elements
| const initialState = { | |
| "entityMap": { | |
| "0": { | |
| "type": "image", | |
| "mutability": "MUTABLE", | |
| "data": { | |
| "src": "https://www.google.es/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png" | |
| } | |
| } | |
| }, |
| const createBlocksWithImage = ()=>{ | |
| const url = "https://www.google.es/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png"; | |
| const entityKey = Entity.create( 'image', 'IMMUTABLE', { src: url } ); | |
| const charData = CharacterMetadata.create({ entity: entityKey }) | |
| const blockSpec = { | |
| type : 'atomic', | |
| text : ' ', | |
| key: genKey(), | |
| depth: 0, | |
| characterList: List(Repeat(charData, 1)) |
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |
| // default exports | |
| export default 42; | |
| export default {}; | |
| export default []; | |
| export default foo; | |
| export default function () {} | |
| export default class {} | |
| export default function foo () {} | |
| export default class foo {} |
In React's terminology, there are five core types that are important to distinguish:
React Elements
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
| [mergetool] | |
| prompt = false | |
| keepBackup = false | |
| keepTemporaries = false | |
| [merge] | |
| tool = winmerge | |
| [mergetool "winmerge"] | |
| name = WinMerge |
This script scans your Dropbox (or any given folder) for folders stored in the ignore array and excludes them from syncing. Makes use of the official Dropbox CLI
I'm a beginner at bash, so all improvements are welcome!
#!/bin/bash
set -e
# SETTINGS##Diagram...
unshift → array ← push
shift ← array → pop
##Chart:
| action | add | remove | start | end |
|---|
| company.com site:linkedin.com/in/ |