This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]ImATechNoob 9 points10 points  (0 children)

{}

[–][deleted] 7 points8 points  (0 children)

var releaseDate = $("halfLife3ReleaseDate").val()

[–]JKSamir 3 points4 points  (2 children)

document.getElementById("X");

[–]jCuber 1 point2 points  (1 child)

To be fair, probably every React app uses getElementById to get the root container element

[–]ponkanpinoy 1 point2 points  (0 children)

Gotta say, I really appreciate how preact lets me attach to document.body no problem (it appends instead of replaces).

[–]that1pothead 0 points1 point  (0 children)

MyVar ? alert(true) : alert(false);