Struggling with adding a border to a div in my app built with react and material-ui. Here is the snippet of code I've been working with:
<div className={classes.search}>
...
</div>
search: {
...
borderWidth: '2px',
borderColor: theme.palette.primary.main,
},
After checking in Chrome, it seems like the border parameter is recognized as 2px, but for some reason, the final border width displayed in Chrome is 0px instead of 2px. Any thoughts on why this might be happening?