Learning Frontend
Vanilla JavaScript React Emotion
Vanilla JavaScript React Emotion
The scope of var is wrong Never use var to declare variables, use let instead. REF == is conversion and comparison What you really need is ===, which is similar to comparing two interface{}. === is shallow {a:1}==={a:1} is false, while Go struct with string are compared by contents (but not for slice). Also this affects map key comparison. So object key is not so useful in JS as struct key in Go. The equality test is always on the references rather than the contents. ...