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

react-php-v8js with React 16.1.1 #34

@tiefenb

Description

@tiefenb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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