DEV Community

Discussion on: Learn Public Class Field Syntax by Refactoring a React Component

Collapse
 
kakakcii profile image
kakakcii

Coming from a both Java and JavaScript background, I have to say I'm quite confused by the name "public class field". As the name suggests, being a "class field" should means that you should only have "one copy", aka added to prototype. Why it turns out to be the opposite?