I've been having trouble with serving a Flask app via uWSGI and nginx, so I thought I'd put together some of the basics to help out others.
- Flask is managed by
uWSGI
. uWSGI
talks tonginx
.
import React, { useRef, useEffect } from 'react'; | |
import * as d3 from 'd3'; | |
interface IProps { | |
data?: number[]; | |
} | |
/* Component */ | |
export const MyD3Component = (props: IProps) => { | |
/* The useRef Hook creates a variable that "holds on" to a value across rendering |