I am using react-router-dom node package in my react project to implement routing.
After setting up the router links,I used following custom CSS to hide the link underline by default:
let styles = theme => ({
TextLink: {
position: 'relative',
color: 'white',
textDecoration: 'none',
'&:hover':{
color: 'white',
},
});
using this I was able to hide.
My objective is to make a link that will display underline on hovering with transition effect(Link underline grows from center to both ends).
Modified CSS or Code samples with any additional node packages would be helpful.