Last active
October 16, 2015 19:57
-
-
Save mdix/77f61f4f5c9430c9ce7c to your computer and use it in GitHub Desktop.
stampit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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