Great, once we have that then the next step is to set up the React app. An API key from OMDB (You can obtain it here or use mine).Some things are needed before we get into building the app: The reason for building the app is just so that we can get a better understanding of using hooks in an application, which helps in understanding the role some of the hooks we will use can play in your own real-world apps. And I will be explaining how a few of the APIs work and how they should be used in any application that we might be building.īelow is an image of what the app will look like once we are done: I know, the name is really creative…īasically, the app will be able to search for movies via the OMDB API and render the results to the user. In essence, we are not going to be using any class components in this application. For this article, we will be building a very simple app using Hooks. I know some might say “Another hooks article, really?”, and to them, I say “Yes…yes and there’s more where that came from”. So, over the weekend after it was released I decided to read about it and surprisingly (not) there was a lot of articles and posts about hooks and how to get started with them. I initially wasn’t as excited as the rest of the community, so I decided to wait until it was officially released in case there were any API changes. If you’re still skeptical about it, then I urge you to check out this medium article so as to understand the problems that the team was trying to solve when they proposed Hooks. React hooks is finally here!!! And I know there has been a whole lot of excitement around the possibilities that this new set of APIs present.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |