React Add Classname Conditionally Independent