import './App.css'
import {Button} from "antd"
<Button
shape="round"
className={
istrue === "itstrue" ? "trueclass" : "trueclass active"
}
>
TEXT
</Button>
Is there a way to establish a default className for the button to start with, since
const [istrue, setIsTrue] = useState(["itstrue"]);
seems to be ineffective. Although it initializes with 'itstrue' state, the button always begins in the non-active state. I want it to start with the active
state.
Any assistance on this issue would be greatly appreciated. Thank you