React site warning: The href attribute requires a valid address. Provide a valid, navigable address as the href value jsx-a11y/anchor-is-valid

Solution 1:

Use href="/#" to replace href="#" OR href="javascript:;" OR href="javascript:void(0);"

It should remove the warnings.

Solution 2:

These worked for me to get rid off the warning;

<a href="#/">...</a>  
<a href={() => false}>...</a>

Solution 3:

I've used href="!#" to remove warnings.

Solution 4:

Insert space after # so no more warning about it

replace href="#" to href="# " but better if use like that href="#something" => href="#profile"