| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 1x 1x 3x 1x | var React = require('react');
module.exports = {
multi: (a, b) => {
return a * b;
},
add: (a, b) => {
return a + b;
},
string: function (title, description) {
return `<div>
<h1>${title}</h1>
<p>${description}</p>
</div>`;
},
TestComponent: (
<div>
<h1>Test!</h1>
</div>
)
} |