I have a problem that converting react class component into react functional component, im almost finish that converting but i\'m struggling at change java script functions