We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { Chrono } from "react-chrono"; import axios from "axios"; import React, { useEffect, useState } from "react"; import { useParams } from "react-router-dom"; export default function Timeline() { const [timeline, setTimeline] = useState({}); const { id } = useParams(); useEffect(() => { loadTimeline(); }, []); const loadTimeline = async () => { const result = await axios.get(`http://localhost:8080/timeline/${id}`); setTimeline(result.data); }; return ( <div> <h2 className="text-center m-4">{timeline.title}</h2> <Chrono items={timeline.events} mode={timeline.mode} allowDynamicUpdate={true} /> </div> );
How it looks:
Somehow when site is reloaded by vscode the timeline is rendered correctly
The text was updated successfully, but these errors were encountered:
prabhuignoto
No branches or pull requests
How it looks:
Somehow when site is reloaded by vscode the timeline is rendered correctly
The text was updated successfully, but these errors were encountered: