Skip to content
Submitted about 2 years ago

Custom Dictionary app made with React.js

accessibility, react, styled-components, typescript
LVL 4
Luciano Lima1,270
@LucianoDLima
A solution to the Dictionary web app challenge

Solution retrospective


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.

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on Luciano Lima’s solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord