Skip to content

Component Hierarchy

trwong edited this page Nov 20, 2017 · 12 revisions

questions:

  • Because posts on the news feed and the wall are similar (one is posts made by friends, one is posts made to or from a specific user) is there an efficient way to reuse one component and check url to determine how to sort through posts?

React Component Hierarchy

General

  • App
    • NavBar
    • Main Page

User Form

  • User Form Container
    • User Form

Session Form

  • Session Form Container
    • Session Form

News Feed

  • News Feed Container
    • Post Form
    • News Feed Index
      • News Feed Index Item
        • News Feed Comments Index
        • News Feed Comment Form

Wall

  • Wall Container
    • Pictures Container
      • Cover Picture
      • Profile Picture
    • Profile Container
      • Post Form
      • Post Index
        • Post Index Item
          • Post Comments Index
          • Post Comment Form

Clone this wiki locally