Improve Player component selection depending on selected architecture. #132
Labels
frontend
Frontend related issues
good first issue
Good for newcomers
hacktoberfest
hacktoberfest
help-wanted
Help is wanted
Description
Improve the selection of the Player Component depending on the selected architecture
Context
In file theres a variable that controls which Music Player component the app has to load
In the theres an if statement hardcoded that chooses between 2 components depending on the architecture selected. The goal is to improve this component selection using composition
How to do it
Use composition instead of the current if-else
Testing
Make a test in a new file called ArchitectureSelection.test.tsx that:
The text was updated successfully, but these errors were encountered: