Questions tagged [react-link]
45 questions
0
votes
0 answers
Link same page with different parameters react using link
I want refresh page and send data using link but it don't work
I am using a link to send me to same page but with different parameters but it is not work and it is not refresh ... what I should do?
When I click the link it change from link but it is…

gemma
- 61
- 1
- 1
- 9
0
votes
1 answer
How to render components dynamically based on route name with React router
I am trying to perform dynamic page routing with react router, and thus far have had a little luck, but now I am trying to render the right Module component based on the parameter called {num} from below? how do I do this??
App.js

lache
- 608
- 2
- 12
- 29
0
votes
1 answer
How to change state in React Router Link component?
How do I pass the Link component's "ischecked" state to the input below?
My goal is to click a button on some other component, which sets the input box to true.

lache
- 608
- 2
- 12
- 29
0
votes
1 answer
React opens website link after localhost url instead of https://websitelink
I get employers web addresses from a database, when I click web address text it opens as localhost:3000/webadresslink, how can I change it to https://webaddresslink
import React, { useState, useEffect } from 'react'
import EmployerService from…

nnoise
- 15
- 7
0
votes
1 answer
React router dom LINK concatunates
I'm trying to create navigation between some categories while changing the link on click
I need to get this localhost/blog/category/:category1 it works for the first category selected but when I click again I get this…

Ahmed Zrouqui
- 356
- 1
- 4
- 13
0
votes
1 answer
What is wrong with my Router element in React JS?
My navbar icon doesn't show up and the console announce the mistake at App.js as:"Line 9: 'Router' is not defined react/jsx-no-undefct/jsx-no-undef".
I don't know what is wrong with my codes. Anybody can help me? Thank you so much!
This is my…

Ashley
- 73
- 6
0
votes
1 answer
React - Route will not render new contents
I have different URLS that are not rendering results.
The behavior is:
1)I have a dynamic list of links, one link for each item created in the database which has a unique ID. When I click on one of these links for the first time, and am coming from…

ChrisK
- 127
- 1
- 8
0
votes
1 answer
access object from Link state in a class component
I have a Link router that takes me from one page to another like so:
This link takes me to another page called details. I want to pass in an…

marcelomo
- 161
- 2
- 14
0
votes
1 answer
Apolloclient with more than 2 ApolloLinks
We have defined an ApolloClient with two ApolloLinks, connecting with MongoDB and PostgreSQL and it is working perfectly:
const firstLink = new HttpLink({
uri: 'graphql-postgre',
//headers: yourHeadersHere,
// other link options...
});
const…

baquero
- 1
- 1
0
votes
0 answers
Navigating to a specific tab from other screen in React
I have built a react application in which I am trying to route to a particular tab from other screen using ReactJS.
I have set route path as below:
Here is the list of screens, for the…

unak
- 15
- 3
0
votes
1 answer
React Router Navlink to another Page using props passed from a Parent
I am redering cards with unique "types" that link to different pages based on the props.type passed to it in react.
Am I correctly dynamically creating these router links?
import React from 'react';
import {render} from 'react-dom';
import {Route,…

Matt Laszcz
- 373
- 3
- 20
0
votes
3 answers
router links are not loading the compoenent

mahone
- 11
- 2
0
votes
1 answer
Changing page address while closing dialog (material ui, react-router)
I am using the Material UI Dialog and react-router to create a sign-in option. Inside the sign-in dialog there is a sign-up link that is supposed to redirect the user to the sign-up page and close the dialog at the same time.
The code for the sign…

Cococrunch
- 67
- 1
- 12
-1
votes
2 answers
Add If statement to Link in React Js
hello all I have a small issue
I want to add a condition in the extension where it works like this:
If you are on the home page, go to the relevant section
But if we are on another page, such as the user page, then when I press any button in the…

Abdulla Nsour
- 1
- 1
-1
votes
3 answers
'Navlink' is not defined in react js
I am working with react-router. Please have a look on my code
index.js
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import Home from './components/Home';
import Services from…

Adnan Nawaz
- 79
- 1
- 8