Setting Up the RTK Store with configureStore
Set up the tweetfind application to use configureStore.
We'll cover the following...
configureStore
You’re no stranger to configureStore
. We took a look when we built Flappy earlier in the course. Let’s apply that same knowledge here while extending what you already know.
The main application features
The tweetfind application has two main features:
(i) Search for tweets based on an input query.
(ii) Choose the number of results to be returned from the search.
The way we’re going to approach this is by having two state slices (hint: we will create these with createSlice
). There should be one for each feature.
We will also keep the feature by folder pattern and have two sub-directories in the features folder: finder
and numberOfResults
.
You might be wondering why the folder structure is encouraged. The chief reason is ease. It’s a lot easier to look in one place and find everything you need instead of jumping through multiple folders.
Now, go ahead and create these folders. You should already have the finder
directory. So, create ...