Questions tagged [react-link]
45 questions
1
vote
1 answer
header.component.tsx(14, 15): An argument for 'e' was not provided
In my reactjs component I am getting an error as:
header.component.tsx(14, 15): An argument for 'e' was not provided.
actually what is the parameter I should send?
here is the component:
import React, { LinkHTMLAttributes } from 'react';
import {…

user2024080
- 1
- 14
- 56
- 96
1
vote
2 answers
How to link two separate pages in React?
I have two pages Sign Up and Sign In within a folder named components and I am trying to link sign up page with sign in page using . But it's giving some error.
components/ SignUp.js
Already have an…

DigiLeon
- 76
- 1
- 2
- 10
1
vote
1 answer
Put Link in StyledMenuItem in React
I wanted to put Link so i can navigate to other pages in react. Why is this not navigating
CODE

Joseph
- 7,042
- 23
- 83
- 181
1
vote
1 answer
Passing Parameters to react-router-dom Link Dynamically
I am working on a React project where in one of the components I am passing properties to another component through react-router-dom Link like so:
let updateEmpInfo;
...
1
vote
1 answer
Is it possible to pass props by match in React Link
I am passing props to the same component in two different ways.
Once by Route path:-
Another by Link as:

masiboo
- 4,537
- 9
- 75
- 136
0
votes
0 answers
Link component in react problems whit passing arguments
I'm working on a project based on react. I'm trying to pass some stuff through the to of the Link component but this does not work. The previous page return me always "/home" and data return me "undefined". Someone can help me with this code? Maybe…

Alessia Volpi
- 43
- 5
0
votes
1 answer
React - passing props into a Class component via a
I'm trying to pass props from one component into a Class component via a using React-Router.... But I'm having trouble...
I have this code in one component wrapping text/image:

Rob BB
- 1
- 1
0
votes
1 answer
How can I change the page whitout react hoocks?
How can navigate?
import ButtonLogReg from "../components/ButtonLogReg"
import { Link } from 'react-router-dom'
import { useContext } from 'react'
import Context from '../components/Context'
import { useNavigate } from 'react-router-dom'
function…

xavi zamora
- 23
- 4
0
votes
0 answers
Add link to path of an SVG in React
I have an SVG of a map that I want to add a link to in React to the path tag.

Francisco José López Laperal
- 11
- 1
- 3
0
votes
2 answers
How can I move to another page when I click on Gallery
I was making a website in which we have a fixed button for the gallery.
I want it so that when the user clicks on it the user will move to a completely different page and only photos are shown on the page.
For this, I tried to make a layout through…

Ankit
- 1,359
- 1
- 2
- 15
0
votes
0 answers
How to pass props through Link method in React?
I am trying to pass a prop from one component in which I search for and select a game to another component where I will render the details of the selected game. I am keeping my components as two separate pages, but I am struggling to get anything…

Vance
- 71
- 7
0
votes
1 answer
How to dynamically render list of fontawesome icons in react that shows error "Could not find icon {prefix: 'fas', iconName: 'faChartLine'"
I have a list route with fontAwesome icon declared in it link this -
const navigationList = [
{
pageName: "Dashboard",
path: "/",
iconName: `faChartLine`
},
{
pageName: "Bus Information",
path: "/bus-info",
…

Htet
- 27
- 1
- 4
0
votes
2 answers
React Router Link not loading the page
I'm trying to redirect to page onclick of a button from my main page App.js, But my redirected page /SelectAirport does not seem to load.
I think there might be something with the link path but I can't figure out how to fix it.
TLDR: The link…

Luis Maximus
- 306
- 1
- 4
- 11
0
votes
0 answers
Warning: Failed prop type: The prop 'to' is marked as required in Link, but its value is undefined
I have been getting this warning a lot but I am not sure how I am able to solve it. The 'to' attribute is the path that I want to redirect user to on click.
Below is the code for the relevant files.
SideMenu.js, is the main component which calls…

der
- 69
- 7
0
votes
1 answer
How to share data from useState in React to another Component
Hey guys let me quickly explain my problem.
I currently have Component in which User can Search something. And after they Click on a Button I get the Data from Firebase which is then stored in a useState which I map afterwards. This whole operation…

Freeman98
- 67
- 5