diff --git a/badge/index.html b/badge/index.html index eef2bc1..36fca42 100644 --- a/badge/index.html +++ b/badge/index.html @@ -10,14 +10,20 @@ // Define a `class` var Badge = React.createClass({ render: function() { - return } }); + var options = { + title: 'Sent', + number: 12 + }; + // React, please render this class - var element = React.createElement(Badge); + var element = React.createElement(Badge, options); // React, after you render this class, please place it in my body tag React.render(element, document.body);