My App component in React.js currently accesses hard-coded data stored in a js variable. I want to instead fetch this piece of data by making a GET or POST request to the python flask server running for the application.
React.renderComponent( <App data={dataset}/>, document.getElementById( "App" ) );
Let's say the data can be accessed by the url /get_dataset.json on python flask. How do alter the code here?
React.renderComponent()w/ the data you have now available.