problem with navigating to another page


Topic: problem with navigating to another page

Siva Krishna Vegi asked 5 years ago

i want the page to navigate to another page

hey hi i'm trying to navigate to another page(News) as per the documentation .but it is not moving to another page nor giving me a error.kindly suggest me a way to route to another page. News News

complete code :import React, { Component } from "react";import {MDBNavbar, MDBNavbarBrand, MDBNavbarNav, MDBNavItem, MDBNavLink, MDBNavbarToggler, MDBCollapse, MDBFormInline,MDBDropdown, MDBDropdownToggle, MDBDropdownMenu, MDBDropdownItem} from "mdbreact";import { BrowserRouter as Router } from 'react-router-dom';import {Link} from "react-router-dom";class NavbarPage extends Component {state = { isOpen: false};

toggleCollapse = () => { this.setState({ isOpen: !this.state.isOpen });}

render() { return ( TrendingBaba Home News Videos trends Videos News ); }}

export default NavbarPage;


Piotr Glejzer staff commented 5 years ago

This is a duplicated question I close it.


FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.25.1
  • Device: lenovog50-80
  • Browser: mozila
  • OS: ubntu
  • Provided sample code: No
  • Provided link: No