Sine function visualization using React Hooks

“Coding Druid” series is my horizontal programming practice notes, each part around a topic like mathematical, physics, electronic, graphics, sound, etc., implemented in several programming languages. Coding DruidPart: MathChapter: Trigonometric FunctionSection: Javascript (React) In the previous section, I visualized Trigonometric function (Sine and unit circle) by MaxMSP: Trigonometric Function Visualization Using MaxMSP — “Coding Druid” This time I use javascript to implement it. There are kinds of ways to draw graphic in javascript in browser: