Resource Objects
{
resourceType: 'books',
resources: {
4: {
title: 'Harry Potter',
releaseYear: 1997,
author: 'J.K. Rowling'
},
102: {
title: 'The Hobbit',
releaseYear: 1937,
author: 'J.R.R. Tolkien'
}
},
// ...a resoure slice contains other information, too. But this guide
// will focus on the `resources` section of the slice.
}const state = store.getState();
const book = state.books.resources[102];What is a Resource?
Modifying Resources
Best Practices
Last updated