Skip to content

Instantly share code, notes, and snippets.

@stoneboyindc
Created August 19, 2020 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stoneboyindc/bd4c3ebb048ea51d59b24bd9f1a16e0b to your computer and use it in GitHub Desktop.
Save stoneboyindc/bd4c3ebb048ea51d59b24bd9f1a16e0b to your computer and use it in GitHub Desktop.
<Route
path='/notes/:notesId'
render={(routeProps) =>
<NotePage
note={store.notes.find(note => note.id === routeProps.match.params.notesId)}
folder={store.folders.find(folder => folder.id === (store.notes.find(note => note.id === routeProps.match.params.notesId)).folderId) }
/>
}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment