This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Component example | |
// ContentWrapper.jsx | |
import React from "react"; | |
import Main from "./Main"; | |
import { withRouter } from "react-router-dom"; | |
const ContentWrapper = ({ children, match }) => ( | |
<Main> | |
<p>Match id: {match.params.id}</p> | |
{children} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { withRouter } from "react-router"; | |
import ScreenHeader from "../../components/UI/ScreenHeader"; | |
import Error from "../../components/UI/Error"; | |
import Loading from "../../components/UI/Loading"; | |
import { useQuery } from "@apollo/react-hooks"; | |
import { GET_PROJECT } from "../../components/Project/project.query"; | |
const ScreensProject = ({ match }) => { | |
const { id } = match.params; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://testing-library.com/docs/example-react-router | |
import React from "react"; | |
import { Router } from "react-router-dom"; | |
import { render } from "@testing-library/react"; | |
import { createMemoryHistory } from "history"; | |
// test utils file | |
function renderWithRouter( | |
ui, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": [ | |
"http://www.w3.org/ns/anno.jsonld", | |
"http://iiif.io/api/presentation/3/context.json" | |
], | |
"type": "Manifest", | |
"id": "http://localhost:3333/concern/generic_works/9019s2443/manifest", | |
"label": "Generic Bunny", | |
"metadata": [ | |
{ |
NewerOlder