Achievement Unlocked: dangerously set inner html in React w/o looking up the API.
-
-
this.__container__ yes, I remember it well!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
now we use symbols ;)
@sebmarkbage@ryanflorence -
App[Symbol.for("__container__")] amirite
-
well, our symbols are bit trickier to get a handle on. As there name is also not stable
-
but someone who is motivated could still.. But at that point…
-
If we really want something private, our friend the WeakMap may be appropriate?
-
that is, until we get actual Private State + Friends in ES
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.