Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a simple timetable app #1291

Closed
wants to merge 1 commit into from
Closed

Conversation

niki4810
Copy link

As per React's documentation, when communication between multiple views:

"A common pattern is to create several stateless components that just render data, and have a stateful component above them in the hierarchy that passes its state to its children via props."

In the course of learning React, I could not find a good example which illustrates this scenario. I came up with this simple example (inspired by the existing caltrain app for ios) for the above mentioned use case. Wanted to submit it to the repo so that it would be helpful for others.

This sample application illustrates how
- A stateful parent can update multiple stateless child views
- How a change in a stateless child view can get notified to parent.
@zpao
Copy link
Member

zpao commented Jun 24, 2014

I'm sorry that this slipped through the cracks! I think this is really cool, and thank you for taking the time to write this, but I think I'll keep it out of the example for now. I strongly encourage you to write up an blog post or publish your own repo, and then link to it in the wiki: https://github.com/facebook/react/wiki/Articles-and-Videos

@zpao zpao closed this Jun 24, 2014
@niki4810
Copy link
Author

@zpao Will do thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants