rtfeldman/bleeding-edge-sample-app — pull request #19 by somethingkindawierd (2014-08-09 20:10:20+00:00)
Title: Adds Survey views

*We probably want to wait for [react-router](https://github.com/rtfeldman/bleeding-edge-sample-app/tree/react-router) to merge before this. After we have landed the routes I can refactor this so it renders the `SurveyPage` in the proper route.*

----

Defines the components wrapping the survey a user will take.

`Survey` is the parent view, essentially a collection view of questions. It's responsible for rendering each question and collecting the user's input.

`SurveyItem` wraps our custom survey question components. It's responsible for

- choosing the proper child component based on the `type` property
- sending the user's answer & question id back to `Survey`.

`BasicSurveyItem` is an example survey question component. It demonstrates:

- each question component takes in the `meta` from the datasource as props
- is responsible or calling `onComplete` with the user's new value