Last active
October 6, 2022 15:34
-
-
Save PaulieScanlon/861863cdda2369473b235471121d790c to your computer and use it in GitHub Desktop.
Create A Line Chart Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useRef, useState } from 'react'; | |
import PropTypes from 'prop-types'; | |
const LineChart = ({ data }) => { | |
return null; | |
}; | |
LineChart.propTypes = { | |
/** The shape of the data */ | |
data: PropTypes.arrayOf( | |
PropTypes.shape({ | |
total: PropTypes.number.isRequired, | |
date: PropTypes.string.isRequired | |
}) | |
).isRequired | |
}; | |
export default LineChart; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment