Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save leslie-alldridge/b034dc76ca30d45cfbc9d2f93de8ebd5 to your computer and use it in GitHub Desktop.
Save leslie-alldridge/b034dc76ca30d45cfbc9d2f93de8ebd5 to your computer and use it in GitHub Desktop.
props react linkedin
<PropsPage name="Chief" age="22" reset={this.resetClick} />
The information above is available in props, such as {props.age}, {props.name} and {props.reset}. This allows our child
components to communicate backwards to the Parent Component - all while listening and waiting for any changes in props that
happen as a result.
In short, my PropsPage component now has extra data being pushed into it from an external source (external to the component itself).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment