https://html-108.vercel.app ... https://github.com/artificialarea/html-108-app
I have some concerns that although the changes to state and subsequent re-renders are as I intended, I suspect I may be erroneously mutating state in the process. I discovered only by accident that if I commented out the entire block of code within setState()
and just left it as an empty setState({ })
shell, the state still changed and re-rendered as intended... what the fuck?!? I've committed and deployed it in that state for discussion. Also left a console.log(this.state) in the render() to reflect change in state.
1. Drum Machine https://html-108.vercel.app/track
- Re:
handleBeatChange
(permalink) - if you click on the 'beat-pads' it does what it should, re-rendering beats toggle on/off based on new state. (btw, no audio yet)
2. Dashboard https://html-108.vercel.app/my-dashboard
- Re:
handlePrivacyChange
(permalink) - if you click on Private or Public radio button, it changes as it should, rerendering based on new state
--