Answers for "react router link disable style"

3

react link underline

<Link to="first" style={{ textDecoration: 'none' }}>
  <MenuItem style={{ paddingLeft: 13 }}>Team 1</MenuItem>
</Link>
Posted by: Guest on February-16-2020
1

take out decoration from link react

import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styled from 'styled-components';


const StyledLink = styled(Link)`
    text-decoration: none;

    &:focus, &:hover, &:visited, &:link, &:active {
        text-decoration: none;
    }
`;

export default (props) => <StyledLink {...props} />;
Posted by: Guest on July-07-2020
0

react router link disable style

[email protected]
Posted by: Guest on October-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language