score:0
i think you are mixing stuff. gatsby extends from @reach/router
so you don't need to use its notation. your link should look like:
<link
to={`/article`}
state={{
title: props.title,
introduction: props.introduction
}}
>
assuming your /article
page exists under /pages
folder.
Source: stackoverflow.com
Related Query
- Getting blank page on using browser router and it's working when not using browser router for routing
- Routing not working using Gatsby - reach-router
- Nested routing is not working in React Router v6
- Nested Routing Not Working in React Router v6
- Routing inside subcomponents not working while using 'exact' : ReactJs
- React Router - routes not working using a Fragment
- Hash routing Navigation is not working - react router redux
- Reach router not working on refresh on gh-pages
- Nested routing using protected routes is not working properly
- Styling the active link using the NavLink component from React Router is not working as expected
- External link not working when using LINK from react router dom
- Redirect not working on React, using react router dom
- Linking components in React using React Router Link not working
- Shallow routing using withRouter and custom server not working
- React Router not working as expected when using withStyles
- I have created a home page using reactstrap and hashrouter. But the router views are not working
- React Router v4 Nested Routing not working when in sub level
- Nested routing is not working in React Router dom V4 from individual component and works only from App.js component
- React router dom v6 using useNevigation is not working with redux
- Browser navigation not working with react router v5 using BrowserRouter
- unit test not using url path with parameter when using reach router with react-testing-library
- ReactJS Bootstrap Navbar and Routing not working together
- You should not use Route or withRouter() outside a Router when using react-router 4 and styled-component in react
- React router private routes / redirect not working
- React Router v4 routes not working
- React Router v4 Redirect not working
- React: Script tag not working when inserted using dangerouslySetInnerHTML
- Using 'ref' on React Styled Components is not working
- React Router with custom history not working
- ReactJS Router V4 history.push not working
More Query from same tag
- My MERN app is deployed on Namecheap / cPanel but it's not accessing Mongo Atlas DB
- How to pass the list "key" value as a props in nested component?
- How can i force a react component to refresh from a javascript file
- React render function preventing creating new canvas element on each time invoked - Charts.js
- Running Node & React on AWS Elastic Beanstalk
- How to debug an error in reactjs
- React convert a string into element with sub and super scripts
- Yup date min doesn't work with Formik DatePicker
- How to call object in array from it's name
- How to sort table by name?
- How to fix "Failed to load resource: net::ERR_FILE_NOT_FOUND" for static images on cordova app using Reactjs and create-react-app
- When using useDispatch() inside useEffect(), action doesn't appear to be called immediately
- Why are these functions working different?
- useEffect keep getting executed every time even dependency not changed
- "this.props" not working in my on mouseup event function in Map Component using react and mapbox-gl
- How do you do this in ReactJS?
- Form in React w/ different input types
- How to export a variable in javascript within a function?
- Checking for a class in React testing library
- Is it possible to activate a scrollTo before React renders its components?
- How to set a const value (true or false) according to window size?
- MUI: The value provided to Autocomplete is invalid.None of the options match with `0`
- Reactjs form is not getting cleared after submission
- React testing library Router tests not passing when following RTL's own guide
- What can I change to make this code work with all section elements
- Checkbox for specific row in react-table?
- How do I log some string on server and give it back to component as props using Next.js?
- Convert class component function to a functional component function
- React using JS var inside quotes
- Value of Select Tag from state dom is not changing in react