how to refractor common set state functions in reactjs

welcome to shbcf.ru