Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (24 loc) · 449 Bytes

File metadata and controls

28 lines (24 loc) · 449 Bytes

1-11 jsx

JSX se usa intensivamente dentro del metodo render() similar a como se usa en React

Ejemplo:

// CONDICIONALES 1
render() {
  return (
    <div>
    {this.name
      ? <p>Hello {this.name}</p>
      : <p>Hello World</p>
    }
    </div>
  );
}
// CONDICIONALES 2
render() {
  {someCondition
    ? <my-counter initialValue={2} />
    : <my-counter initialValue={5} />
  }
}

Ahora continua con 1-12 loops