Use single quotes, remove extra whitespace (#9215)
CodinCat committed
Mar 19, 2017 at 13:34 UTC
0ceb5115ace29ffffac4e37f8f59c75fef23deb0
1 file changed
+3
-3
docs/docs/optimizing-performance.md
+3
-3
@@ -248,9 +248,9 @@ If you're using Create React App, both `Object.assign` and the object spread syn
248
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:
249
250
```javascript
251
-const x = { foo: "bar" };
251
+const x = { foo: 'bar' };
252
const y = x;
253
-y.foo = "baz";
253
+y.foo = 'baz';
254
x === y; // true
255
```
256
@@ -258,7 +258,7 @@ Although `y` was edited, since it's a reference to the same object as `x`, this
258
259
```javascript
260
const SomeRecord = Immutable.Record({ foo: null });
261
-const x = new SomeRecord({ foo: 'bar' });
261
+const x = new SomeRecord({ foo: 'bar' });
262
const y = x.set('foo', 'baz');
263
x === y; // false
264
```