hcp-uw / syntext

website for practicing your typing
5 stars 0 forks source link

snippet selection buttons #24

Closed elimelt closed 1 year ago

elimelt commented 1 year ago

Implement the functionality of the buttons to decide the length and type of snippet you want to practice on.

Should take in a state value and setter as props, and upon clicking/selection, update the new value with the setter function.

You can optionally make components for both and put them inside of a parent component like "SnippetOptions", or just implement the functionality directly in this parent component.

Don't worry about where these state values come from. For now, we can just put them in App.js and pass them as a prop to the component for testing/debugging.

elimelt commented 1 year ago

resolved!