0.5.4 • Published 4 years ago

vanilla-ele v0.5.4

Weekly downloads
36
License
-
Repository
github
Last release
4 years ago

vanilla-ele

Example:

Easy create HTMLElement:

const buttonFuture = Ele.future()

  const body = Ele("div", { className: bem`_body` }, [
    Ele("div", {
      onclick: handleGoToUserClick,
      className: bem`_goToUser`,
      textContent: "go to user"
    }),
    ...Array(50)
      .fill(0)
      .map((v, i) => {
        return Ele("div", { textContent: "label" + i });
      }),
    buttonFuture.Ele("div", {
      onclick: handleGoToUserClick,
      className: bem`_goToUser`,
      textContent: "go to user2"
    })
  ]);

  console.log(buttonFuture.target);
0.5.4

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.0

4 years ago

0.5.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago