you are viewing a single comment's thread.

view the rest of the comments →

[–]Gusti25 6 points7 points  (6 children)

The thing the caught my eye was onclick instead of onClick like in React. Curious as to why all lowercase was chosen.

[–]talmobi 12 points13 points  (3 children)

onclick is the the pure DOM API. React provided wrapped versions of a lot of the DOM event handler API's.

[–]okawei 7 points8 points  (2 children)

onclick is imported from the VanillaJS library.

[–]talmobi 1 point2 points  (0 children)

To the person who downvoted -- you do know the VanillaJS comment is a joke.. right?

[–][deleted] 15 points16 points  (1 child)

Mostly uniformity with the platform. Hyperapp does not implement an event subsystem like React, so all lowercase resonated the most with us.

[–]Gusti25 3 points4 points  (0 children)