Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoespeon committed Jan 31, 2020
1 parent 3c02e10 commit a2fa984
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ Related projects:
1. [Convert to Template Literal](#convert-to-template-literal)
1. [Replace Binary with Assignment](#replace-binary-with-assignment)
1. [Convert For-Loop to Foreach](#convert-for-loop-to-foreach)
- TS specific:
1. [Extract Interface](#extract-interface)
- React specific:
1. [Convert to Pure Component](#convert-to-pure-component)
1. [Add braces to JSX attribute](#add-braces-to-jsx-attribute)
Expand Down Expand Up @@ -348,6 +350,16 @@ When it's possible, it converts an old-school for-loop into a `forEach()` call.

![][demo-convert-for-to-foreach]

### Extract Interface

> 💡 Available as Quick Fix (`Alt ↵`)
Extract the interface from a class.

This is very useful when you need to invert a dependency: create an interface from an existing class, so you can provide a different implementation of this interface.

![][demo-extract-interface]

### Convert to Pure Component

> 💡 Available as Quick Fix (`Alt ↵`)
Expand Down Expand Up @@ -563,6 +575,7 @@ When we'll have more experience, we'll probably ping the authors of other extens
[demo-add-braces-to-if-statement]: https://github.com/nicoespeon/abracadabra/blob/master/docs/demo/add-braces-to-if-statement.gif?raw=true
[demo-add-braces-to-jsx-attribute]: https://github.com/nicoespeon/abracadabra/blob/master/docs/demo/add-braces-to-jsx-attribute.gif?raw=true
[demo-remove-braces-from-jsx-attribute]: https://github.com/nicoespeon/abracadabra/blob/master/docs/demo/remove-braces-from-jsx-attribute.gif?raw=true
[demo-extract-interface]: https://github.com/nicoespeon/abracadabra/blob/master/docs/demo/extract-interface.gif?raw=true

<!-- Logo -->

Expand Down
Binary file added docs/demo/extract-interface.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a2fa984

Please sign in to comment.