Skip to content

Instantly share code, notes, and snippets.

@Anshad786
Anshad786 / src⁄App.js
Last active December 27, 2025 08:03 — forked from okoghenun/src⁄App.js
import React, { useState, useEffect } from 'react';
import { Line } from 'react-chartjs-2';
import axios from 'axios';
function App() {
const [chartData, setChartData] = useState({});
useEffect(() => {
const fetchData = async () => {
const result = await axios.get('http://localhost:5000/stock/AAPL');