From 0ceb5115ace29ffffac4e37f8f59c75fef23deb0 Mon Sep 17 00:00:00 2001 From: CodinCat Date: Sun, 19 Mar 2017 13:34:53 -0500 Subject: [PATCH] Use single quotes, remove extra whitespace (#9215) --- docs/docs/optimizing-performance.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/optimizing-performance.md b/docs/docs/optimizing-performance.md index cbb1b9849b..185fb57873 100644 --- a/docs/docs/optimizing-performance.md +++ b/docs/docs/optimizing-performance.md @@ -248,9 +248,9 @@ If you're using Create React App, both `Object.assign` and the object spread syn Immutability makes tracking changes cheap. A change will always result in a new object so we only need to check if the reference to the object has changed. For example, in this regular JavaScript code: ```javascript -const x = { foo: "bar" }; +const x = { foo: 'bar' }; const y = x; -y.foo = "baz"; +y.foo = 'baz'; x === y; // true ``` @@ -258,7 +258,7 @@ Although `y` was edited, since it's a reference to the same object as `x`, this ```javascript const SomeRecord = Immutable.Record({ foo: null }); -const x = new SomeRecord({ foo: 'bar' }); +const x = new SomeRecord({ foo: 'bar' }); const y = x.set('foo', 'baz'); x === y; // false ```