Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

react-php-v8js with React 16.1.1 #34

Open
tiefenb opened this issue Nov 21, 2017 · 1 comment
Open

react-php-v8js with React 16.1.1 #34

tiefenb opened this issue Nov 21, 2017 · 1 comment

Comments

@tiefenb
Copy link

tiefenb commented Nov 21, 2017

Does react-php-v8js work with the newer version of react?

When I try to make it work with 16.1.1 and following code:

class Table extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    var rows = this.props.data.map(function (row) {
      var cells = row.map(function(cell) {
        return <td>{cell}</td>;
      });
      return <tr>{cells}</tr>;
    });
    return (
      <table>
        <tbody>{rows}</tbody>
      </table>
    );
  }
}

I get this Error:
V8Js::compileString():1007: TypeError: Super expression must either be null or a function, not undefined

@tiefenb
Copy link
Author

tiefenb commented Nov 21, 2017

When I try var_dump(React.Component) it say it is NULL

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant