Closed vaibhav18matere closed 1 year ago
In Chapter 04 - Talk is Cheap, show me the code: Akshay Saini taught that how to use hard-coded data
, so I have put all restaurantList data
in App.js file.
Note: It's the part of course that we can
use hardcode data
also.
As I moved in Chapter 05 - Let's get Hooked!: Akshay Saini taught that we can use separate files for our hard-coded data so I have already separated restaurantList data
in assets file
(I have used constants.js here) in Chapter 05
for better code readability
.
I have already finished all your mentioned points in Chapter 05 - Let's get Hooked!
Thank you for exploring the repository in depth.
Make seperate
data.js
file instead of adding all therestaurantList
data inApp.js
. linkdata.js
file and cut-paste all therestaurantList
.data.js
file inApp.js
and use it there.It will improve your code redability.