![]() ![]() ![]() React suggests a pattern that your `view is a function of your state`. You may choose to live by the principle that unless you absolutely need `var`, use `const` until your linter tells you otherwise, then default to `let`. Variables are the mechanism built into JavaScript that allow us to hold onto data in memory and access that data later on within our applications.ĮS6 brought with it new keywords that we can use to store variables other than the traditional `var` keyword (like `let` and `const`). Understanding when and where you have access to the data you need is critical. You can’t rock React without a firm understanding of the fundamental concepts that the JavaScript language provides, but these ES6 skills are also essential:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |