React colspan not working React colspan not working javascript javascript

React colspan not working


From React's DOM Differences documentation:

All DOM properties and attributes (including event handlers) should be camelCased to be consistent with standard JavaScript style.

If you check your browser's console, you'll see that React warns you about this:

<meta charset="UTF-8"><script src="https://npmcdn.com/react@15.2.1/dist/react.js"></script><script src="https://npmcdn.com/react-dom@15.2.1/dist/react-dom.js"></script><script src="https://npmcdn.com/babel-core@5.8.38/browser-polyfill.min.js"></script><script src="https://npmcdn.com/babel-core@5.8.38/browser.min.js"></script><div id="app"></div><script type="text/babel">var App = React.createClass({  render() {    return <table border="1">      <tbody>        <tr>          <th colspan="2">people are...</th>        </tr>        <tr>          <td>monkeys</td>          <td>donkeys</td>        </tr>      </tbody>    </table>  }})ReactDOM.render(<App who="World"/>, document.querySelector('#app'))</script>