Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-03-2020 03:36 PM
Hi,
I am getting the following error while trying to use neovis.js with react. Please help in resolving this.
1.chunk.js (72811,11)
2. 0: Object doesn't support this action
import React, { Component } from 'react';
//import './Component.css'
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import NeoVis from 'neovis.js/dist/neovis.js';
class Suggestions1 extends Component {
constructor(props) {
super(props);
this.state = {
viz: undefined,
};
}
componentDidMount() {
const config = {
container_id: "viz",
server_url: "neo4j://localhost:7687",
server_usr: "neo4j",
server_password: "Test123",
labels: {
},
relationships: {
},
initial_cypher: "MATCH (p:Person)-[:DIRECTED]->(:Movie) RETURN p"
}
this.testData = new NeoVis.default(config);
// this.setState({
// viz : testData
// })
this.testData.rendor();
}
render() {
return (
export default Suggestions1;
All the sessions of the conference are now available online