window.location.href
is what you’re looking for.
More Related Contents:
- Is there a “Best Practices” on designing an application written both in React and React-Native?
- Programmatically navigate using React router
- What’s the difference between “super()” and “super(props)” in React when using es6 classes?
- My React Component is rendering twice because of Strict Mode
- How to set one component’s state from another component in React
- Template not provided using create-react-app
- Is it possible to use if…else… statement in React render function?
- Component does not remount when route parameters change
- How to cancel a fetch on componentWillUnmount
- React.createElement: type is invalid — expected a string
- What is use of curly braces in an ES6 import statement?
- Handling async request with React, Redux and Axios?
- react setState with dynamic key
- Sending the bearer token with axios
- What does it mean when they say React is XSS protected?
- Remove console.logs with Webpack & Uglify
- Target Active Link when the route is active in Next.js
- How do I hide an API key in Create React App?
- Adding an .env file to a React project [duplicate]
- React App goes blank after importing React-Router-Dom
- How do I load a markdown file into a react component?
- Pass object through Link in react router
- Is it possible to limit children to specific components using React with TypeScript?
- VirtualizedList: You have a large list that is slow to update
- is it possible to React.useState(() => {}) in React?
- How to minimize the size of webpack’s bundle?
- ESLint Must use destructuring state assignment
- Cannot find module ‘sass’
- React Hook useEffect has a missing dependency: ‘list’
- Show/Hide components in ReactJS