Submitted
Custom Dictionary app made with React.js
- HTML
- CSS
- JS
- API
Custom dictionary website. All feedback and criticism are welcome!
Hi all! Been a while since I last submitted a challenge, and I learned a lot the past few months! I decided to modify the challenge, so you will notice my design is slightly different. And I used styled-components because I had never used it before, so I wanted to have the experience!
For starters, I decided to remove the single play-audio button and added a smaller one with the phonetic writing and accent/origin between it. It also renders multiple buttons if there is more than one pronunciation provided. I also tried to add a small animation to the antonym/synonym buttons.
Another change I made, I added a new button right next to the search box, since we're dealing with fetching data, I decided to make so it will not fetch data as you type, as that can be troublesome. There's a way around it by memoizing but I still thought it was better this way, since it's how the other big dictionaries online did it.
One difficulty I've had was the typescript in the useDictionary context. I had to leave the useDictionaryContext()
with any
as I couldn't figure out what I did wrong.