Created
May 20, 2021 04:32
-
-
Save LiorB-D/10a481e3b1e01435ce17eb7abceeb9a4 to your computer and use it in GitHub Desktop.
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 './App.css'; | |
import * as d3 from 'd3' // Import D3 | |
import {useEffect} from 'react' | |
function App() { | |
useEffect(() => { | |
/* | |
This is going to run once when the App is first rendered. | |
All of our D3 code, which will edit the elements on our DOM, will be put here. | |
If you wanted to run this code in response to a certain action, such as a buttonPress event, | |
you can put in the appropriate function. | |
*/ | |
}, []) | |
return ( | |
<div className = "App"> // Render an empty Div for now. | |
</div> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment