Skip to content

Instantly share code, notes, and snippets.

@LiorB-D
Created May 20, 2021 04:32
Show Gist options
  • Save LiorB-D/10a481e3b1e01435ce17eb7abceeb9a4 to your computer and use it in GitHub Desktop.
Save LiorB-D/10a481e3b1e01435ce17eb7abceeb9a4 to your computer and use it in GitHub Desktop.
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