I may have missed something, but here goes. If I have:
var Swoosh = React.createClass({
render: function() {
ret
There is a alternative way to achieve this by using data attributes in html. Here's a small example: In html, you add as much properties with the data prefix as you want:
All data properties will be automatically converted to CamelCased properties in the element's dataset
property. Pass this property to your React component and you're done:
let element = document.getElementById('root')
ReactDOM.render(, element)