Hi All,
I do not know why I have been getting this error on my console, can anyone please let me know what are the ways I can get rid of this below error and why am I seeing this while the app works fine for me. I tried to correct the value using exact=“true” but has same issue
Warning: Received `true` for a non-boolean attribute `exact`.
If you want to write it to the DOM, pass a string instead: exact="true" or exact={value.toString()}.
The code which has exact in my nav component is as below
<div className="nav_menu">
<NavLink exact activeClassName= "active_link" to='/home' className="navitems" > Home </NavLink>
<NavLink exact activeClassName= "active_link" to='/about'className="navitems" > About </NavLink>
<NavLink exact activeClassName= "active_link" to = '/products' className="navitems" > Products </NavLink>
<IconButton className="account_icon" >
<AccountCircleIcon fontSize="small" />
</IconButton>
</div>
The code which has another exact is on my app.js
<Navbar handleChange = {handleChange} searchText = {searchText}/>
<Switch>
<Route exact path="/" component={`${Home}`}/>
<Route path="/home" component={Home}/>
<Route path="/about" component={About}/>
<Route path="/products" render= { (props) => <Products {...props} searchText={searchText} /> }/>
<Route path="/signup" component={Signup}/>
<Route path="/signin" component={Signin}/>
<Route component={Error}/>
</Switch>
Thanks