Skip to content

cjoewono/react-mute-button

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mute Button

Continuing in our exploration handling interactions and events in React, we'll now create a simple UI - but without <input> elements. In addition to learning how to handle click events, you'll also learn how to utilize SVGs in React apps.

Release 0

  • Scaffold the app using npm create vite or npx create vite.

Release 1

  • Render the on.svg image from the icons directory and attach an onClick event listener to it.

Release 2

  • When the image is clicked, toggle it to the off.svg image - and vice versa. on -> off -> on -> off.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%