functional reactjs table implementation