Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbo committed Sep 23, 2019
1 parent 587eb36 commit 7c9cce2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/peregrine/lib/talons/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Peregrine Mixins
# Peregrine Talons

Peregrine mixins are hooks that contain component logic.
Peregrine "talons" are hooks that contain component-specific logic.

## Example

The following example shows how a component looks after the logic has migrated. Notice how all logic is contained within a single component hook that takes props and returns the necessary render values.
The following example shows how a component looks after its logic has been extracted into a talon. Notice how the logic is contained within a single component hook that receives props and returns the necessary render values.

### Before

Expand Down Expand Up @@ -45,7 +45,7 @@ const MyComponent = props => {

```js
import React from 'react';
import { useMyComponent } from '@magento/peregrine/lib/mixins/useMyComponent';
import { useMyComponent } from '@magento/peregrine/lib/talons/MyComponent';

const MyComponent = props => {
const { data, message } = useMyComponent(props);
Expand Down

0 comments on commit 7c9cce2

Please # to comment.