Skip to content

Cannot read property '__reactAutoBindMap' of undefined #15

Description

@tBaxter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions