I am facing an error that shows legacy octal literals are not allowed while working on context API in react. For reference, I am attaching a code snippet below.
const [mission, setMission] = useState({ name: "go to russia", agent: 007, accept: "Not accepted", })