State Shape - MDasch22/react-solo-project Wiki

State Shape

store = {
    session: {},
    businessDetail: {
        beachId: {
                beachData,
                user: {userData for beach owner},
                reviews: {
                    reviewId: {
                            reviewData,
                            user: {userData of author}
                    },
                    optionalOrderedList: []
                }
        }
    },
    allBeaches: {
        beachId: {
            beachData,
            user: {userData for beach owner}
        },
        optionalOrderedList: []
    }
}