component hierarchy - Rmark92/Soundstorm GitHub Wiki
Functional Component Hierarchy
Root
App
NavBar
MainPage
Footer
TrackPlayerContainer
+TrackPlayer
NavBar
NavBar
- Components:
SessionContainer
+Session
- State:
session
,users[session[:id]]
- State:
- Components:
TrackPlayer
TrackPlayerContainer
+TrackPlayer
- State:
currentTrack
,tracks[currentTrack[:id]]
- State:
Session
SessionFormContainer
+SessionForm
- Route:
/#/log_in
,/#/sign_up
- State:
errors.sessionForm
- Route:
Tracks
-
TrackIndexContainer
+TrackIndex
- Route:
/#/
,/#/users/:id
,/#/users/:id/likes
,/#/playlists/:id
- State:
tracks
,users
- Components:
TrackIndexItemContainer
+TrackIndexItem
- Route:
-
TrackIndexItemContainer + TrackIndexItem
- Route:
/#/tracks
,/#/users/:id
,/#/users/:id/likes
,/#/playlists/:id
- State:
tracks[:id]
,currentTrack
- Route:
-
TrackShowContainer
+TrackShow
- Route:
/#/tracks/:id
- State:
tracks[:id]
,users[:id]
,currentTrack
- Components:
CommentFormContainer
+CommentForm
CommentIndexContainer
+CommentIndex
- Route:
-
TrackFormContainer
+TrackForm
- Route:
/#/tracks/new
- State:
errors.trackForm
- Route:
Comments
-
CommentFormContainer
+CommentForm
- Route:
/#/tracks/:id
- State:
errors.commentForm
- Route:
-
CommentsIndexContainer
+CommentsIndex
- Route:
/#/tracks/:id
,/#/users/:id/comments
- State:
comments
,users
- Components:
CommentIndexItem
- Route:
Users
UserShowContainer
+UserShow
- Route:
/#/users/:id
- State:
users[:id]
,tracks
- Components:
TrackIndexContainer
+TrackIndex
CommentIndexContainer
+CommentIndex
PlaylistIndexContainer
+PlaylistIndex
- Route: