Skip to content

Commit cd0873a

Browse files
committed
Merge pull request DrkSephy#47 from richardbutler/patch-1
Add complex import simplification
2 parents fe6be35 + 3c70921 commit cd0873a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,12 @@ import React from 'react';
476476
const { Component, PropTypes } = React;
477477
```
478478

479+
This can also be simplified further, using:
480+
481+
```javascript
482+
import React, { Component, PropTypes } from 'react';
483+
```
484+
479485
> **Note**: Values that are exported are **bindings**, not references.
480486
Therefore, changing the binding of a variable in one module will affect the
481487
value within the exported module. Avoid changing the public interface of these

0 commit comments

Comments
 (0)