Skip to content

Instantly share code, notes, and snippets.

@mdix
Last active October 16, 2015 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdix/77f61f4f5c9430c9ce7c to your computer and use it in GitHub Desktop.
Save mdix/77f61f4f5c9430c9ce7c to your computer and use it in GitHub Desktop.
stampit
'use strict';
const stampit = require('stampit');
var Wheels =
stampit()
.props(
{
amount: 4,
diameter_inch: 17,
pressure_psi: 2.1
}
);
// just pass in an object as the first argument with propertynames matching the defined properties
// Note: Same works for refs!
Wheels({amount: 10, diameter_inch: 20});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment