React Use Typescript Or Statement Python