I'm sure this is just me, as I'm still pretty new to React, but I cannot get this working.
No matter what I do, I'm seeing "Uncaught TypeError: Cannot read property '__reactAutoBindMap' of undefined" and it is often accompanied by "Warning: Something is calling a React component directly. Use a factory or JSX instead."
Here's the simplest version of the code I've tried (although I've tried many variations:
import React from 'react';
import { render } from 'react-dom';
import Tabs from 'faster-react-tabs';
var YourThing = React.createClass({
render() {
const sections = [
{
title: 'Tab 1',
content: 'Tab 1 content'
},
{
title: 'Tab 2',
content: 'Tab 2 content'
},
];
return (
<Tabs sections={sections} />
);
}
});
render(
<YourThing />,
document.getElementById('detail-wrapper')
);
React (and react-dom) is ^15.1.0
I'm sure this is just me, as I'm still pretty new to React, but I cannot get this working.
No matter what I do, I'm seeing "Uncaught TypeError: Cannot read property '__reactAutoBindMap' of undefined" and it is often accompanied by "Warning: Something is calling a React component directly. Use a factory or JSX instead."
Here's the simplest version of the code I've tried (although I've tried many variations:
React (and react-dom) is ^15.1.0