We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Function as Child Component
<div> <LastLocation> {(lastLocation) => ( <div>Last location was: {lastLocation.pathname}</div> )} </LastLocation> </div>
Function as Prop Component
const renderLastLocation = (lastLocation) => ( <div>Last location was: {lastLocation.pathname}</div> ); <div> <LastLocation renderLastLocation={renderLastLocation} /> </div>
Component injection
const MyComponent = ({ lastLocation }) => ( <div>Last location was: {lastLocation.pathname}</div> ); <div> {# Like <Route component={MyComponent} ...> in react-router #} <LastLocation component={MyComponent} /> </div>
The text was updated successfully, but these errors were encountered:
Merge pull request #1 from OpenSourceRaidGuild/jacobmgevans
f54fca4
Init react testing library
No branches or pull requests
Possible APIs
Function as Child Component
Function as Prop Component
Component injection
Inspiration
The text was updated successfully, but these errors were encountered: