createDomElements() {
    const appRoot = this.createElem('div', ['app', 'js-app']);

    const form = this.createElem('form', ['search-form', 'js-search-form']);

    const inputMarkup = this.createElem('input', ['search-form__input']);

    inputMarkup.type = 'text';
    inputMarkup.name = 'query';
    inputMarkup.autocomplete = 'off';
    inputMarkup.placeholder = 'Search images...';

    form.append(inputMarkup);

    const list = this.createElem('ul', ['card-list', 'js-card-list']);

    const spin = this.createSpinnerElement();

    appRoot.append(form, list, spin);

    return appRoot;
  }
/**
   * Method for creates all elements and return them.
   * appRoot contains all the elements
   */
Method for creates all elements and return them.
appRoot contains all the elements
Method for creates all elements and return them . appRoot contains all the elements
createDomElements() {
    const appRoot = this.createElem('div', ['app', 'js-app']);
    const form = this.createElem('form', ['search-form', 'js-search-form']);
    const inputMarkup = this.createElem('input', ['search-form__input']);
    inputMarkup.type = 'text';
    inputMarkup.name = 'query';
    inputMarkup.autocomplete = 'off';
    inputMarkup.placeholder = 'Search images...';
    form.append(inputMarkup);
    const list = this.createElem('ul', ['card-list', 'js-card-list']);
    const spin = this.createSpinnerElement();
    appRoot.append(form, list, spin);
    return appRoot;
  }
createDomElements ( ) { const appRoot = this . createElem ( 'div' , [ 'app' , 'js-app' ] ) ; const form = this . createElem ( 'form' , [ 'search-form' , 'js-search-form' ] ) ; const inputMarkup = this . createElem ( 'input' , [ 'search-form__input' ] ) ; inputMarkup . type = 'text' ; inputMarkup . name = 'query' ; inputMarkup . autocomplete = 'off' ; inputMarkup . placeholder = 'Search images...' ; form . append ( inputMarkup ) ; const list = this . createElem ( 'ul' , [ 'card-list' , 'js-card-list' ] ) ; const spin = this . createSpinnerElement ( ) ; appRoot . append ( form , list , spin ) ; return appRoot ; }
Method for creates all elements and return them.
Method for creates all elements and return them .