--- tags: Andy Grace Giegie --- # React ## fundamentals of react ### Object Destructuring & Spread Operators ```javascript const student = { ID: '21', name: 'Jhon', GPA: '3.0', }; const {ID, name, GPA} = student; const student = { ID: '21', name: 'Jhon', GPA: '3.0', }; const {name:n} = student; console.log(n); const users = this.state.users; const counter = this.state.counter; // destructuring const { users, counter } = this.state; ``` ### Spread Operator ### Arrow Function
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up