Answers for "how to navigate with navintems for react-bootstrap without refreshing the whole page"

1

react-bootstrap navbar nav link refreshes page

import { Route, RouteHandler, Link } from 'react-router';
import AuthService from '../services/AuthService'
import { Button, Nav, Navbar, NavDropdown, MenuItem, NavItem } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';

/// In the render() method
<Nav pullRight>
  <LinkContainer to="/home">
    <NavItem eventKey={1}>Home</NavItem>
  </LinkContainer>
  <LinkContainer to="/book">
    <NavItem eventKey={2}>Book Inv</NavItem>
  </LinkContainer>
  <NavDropdown eventKey={3} title="Authorization" id="basic-nav-dropdown">
    <LinkContainer to="/logout">
      <MenuItem eventKey={3.1}>Logout</MenuItem>    
    </LinkContainer>      
  </NavDropdown>  
</Nav>
Posted by: Guest on May-04-2020
0

how to navigate with navintems for react-bootstrap without refreshing the whole page

import { Link } from 'react-router-dom'

<Nav.Link as={Link} to="/">
Posted by: Guest on October-08-2020

Code answers related to "how to navigate with navintems for react-bootstrap without refreshing the whole page"

Code answers related to "Javascript"

Browse Popular Code Answers by Language