Skip to content

Instantly share code, notes, and snippets.

Nate Guo viix

  • Shanghai, China
Block or report user

Report or block viix

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
viix / Enhance.js
Created Apr 5, 2017 — forked from sebmarkbage/Enhance.js
Higher-order Components
View Enhance.js
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
componentDidMount() {
this.setState({ data: 'Hello' });
render() {
viix / test.js
Created Feb 2, 2016 — forked from ProfAvery/test.js
Using Underscore.js from the Node.js REPL
View test.js
Per <>,
from the Node.js REPL, use two underscores (__) instead of a single underscore (_)
because Node uses _ for the last return value.
Note that if your program is in a file, you can still use a single underscore (_).
var __ = require("underscore");
__.each([1, 2, 3], function(e) { console.log(e); });
You can’t perform that action at this time.