React + styled-components starter template
This example is a React starter template using styled-components for UI styling. It demonstrates a basic interactive keyboard component with five keys (A, S, D, F, G) that trigger sine-wave tones via the Web Audio API. A slider and number input control a pitch value, which is passed to the oscillator’s frequency when a key is pressed or released. The code uses React hooks like `useState` and `useEffect` to manage audio context, oscillator state, and pitch updates, with styled-components’ `createGlobalStyle` and template literals for global and component-level styling.