Skip to content

Instantly share code, notes, and snippets.

@xyzdata
Last active June 30, 2017 14:29
Show Gist options
  • Save xyzdata/a3cb5e35fbd7179dab57f582a960571a to your computer and use it in GitHub Desktop.
Save xyzdata/a3cb5e35fbd7179dab57f582a960571a to your computer and use it in GitHub Desktop.
React Event
@xyzdata
Copy link
Author

xyzdata commented Jun 21, 2017

@xyzdata
Copy link
Author

xyzdata commented Jun 21, 2017

let { x, y } = { x: 1, y: 2, a: 3, b: 4 };


```

@xyzdata
Copy link
Author

xyzdata commented Jun 21, 2017

https://repl.it/examples

function Person(name, job) {
  this.name = name;
  this.job = job;
  this.print = function() {
    console.log(this.name + ', ' + this.job);
  };
}
var thatGuy = new Person("Jack", "coder");
thatGuy.print();

@xyzdata
Copy link
Author

xyzdata commented Jun 21, 2017

@xyzdata
Copy link
Author

xyzdata commented Jun 21, 2017

@xyzdata
Copy link
Author

xyzdata commented Jun 21, 2017

css

https://stackoverflow.com/questions/4264527/vertical-text-direction

https://www.thecssninja.com/css/real-text-rotation-with-css

image

<p class="vericaltext">
Hi This is Vertical Text!
</p>



.vericaltext{
    width:1px;
    word-wrap: break-word;
    font-family: monospace; /* this is just for good looks */
}

@xgqfrms-GitHub
Copy link

Stateless function components & no refs

React & event.preventDefault() & event.stopPropagation();

https://gist.github.com/xgqfrms-GitHub/cc2598e0410542c504aa7fee4e2c8b9f#gistcomment-2136883

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment