ignatov

Untitled

Sep 17th, 2021
1,074
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. componentDidMount() {
  2.     fetch("/employeeSet?$format=json")
  3.       .then((res) => res.json())
  4.       .then(
  5.         (result) => {
  6.           this.setState({
  7.             results: result.d.results,
  8.             isLoaded: true,
  9.           });
  10.         },
  11.         (error) => {
  12.           this.setState({
  13.             isLoaded: false,
  14.             error,
  15.           });
  16.         }
  17.       );
  18.   }
RAW Paste Data