Open prachirathod99 opened 4 years ago
Any errors you faced after changes in Graph.tsx? If possible could you share the elem.setAttribule function and where you added it.
And this is where I have added it in the Graph.tsx file:
Any input?
Hi, I have no issues with the graph.tsx but these issues are in the App.tsx the one which i posted
Hi @prachirathod99 , I've already suggested the possible mistake in your code here : https://github.com/insidesherpa/JPMC-tech-task-2/issues/137#issuecomment-630762598
Please update your code, and if any other error occurs, then post it here, and if it's successful then don't forget to close both the issues that you've opened. Thank you!
import React, { Component } from 'react'; import DataStreamer, { ServerRespond } from './DataStreamer'; import Graph from './Graph'; import './App.css';
/**
/**
It renders title, button and Graph react element. */ class App extends Component<{}, IState> { constructor(props: {}) { super(props);
this.state = { // data saves the server responds. // We use this state to parse data down to the child element (Graph) as element property data: [], showGraph: false, }; }
/**
/**
/**
) } }
export default App;
for the changes made in the App.tsx I get the following errors: An object literal cannot have multiple properties with the same name in strict mode. Identifier expected. ts(1005) [75,7] Cannot find name 'div'. ts(2304) [75,9] Expression expected ts(1109) [76,5]