Hope you are all staying safe and well during these crazy times.
I just finished building a Google Fonts Clone as part of an application to a Chingu Voyage. I would like to get some feedback on the project if possible, including the actual code I have written. Please be as critical as you like, down to the semicolons. The repository can be found here.
I would also be happy to explain to anyone how I did certain things within the project for those that are looking to apply certain functionality to their own projects.
That is a cool project. I am especially curious about how you implemented the search. I have been wanting to implement something like that in one of my projects.
Think of the search feature more as a filter, because that’s exactly what it is. Once I pull the data from the API into the store (let me know if you want me to elaborate on this) I then use mapStateToProps which is a Redux feature to bring the data from the store into the component. I am also bringing over the value I am searching for. See below:
I can then use the search value to filter the data and return only the information I want. I only want the data that includes the font family I search for. From there you map over the data to create a component for each font family. See below: