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
The text was updated successfully, but these errors were encountered:
Hi @jpca999,
The sample data is imported from constants/data and stored in the variable storyData and later it is being used in the renderStories method.
constants/data
storyData
renderStories
To make the search work you'd need to update this storyData or add it to state everytime a new search happens.
In the code above, you need to add a state:
state: { stories: [] }
and then use
componentWillMount(){ // update the state using the API call and feed that data into `stories` }
and later use renderStories
this.state.stories.map(this.getStoryData)
Thanks
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: