Skip to content

Instantly share code, notes, and snippets.

View uchitwai's full-sized avatar
💭
ok

mamamoe3579 uchitwai

💭
ok
View GitHub Profile
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');