Skip to content

Commit

Permalink
Add comment denoting the file name within snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
calaway committed May 31, 2019
1 parent a71661c commit 324d754
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/react/en/simple-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ First, let’s create the task component and its accompanying story file: `src/c
We’ll begin with a basic implementation of the `Task`, simply taking in the attributes we know we’ll need and the two actions you can take on a task (to move it between lists):

```javascript
// src/components/Task.js

import React from 'react';

export default function Task({ task: { id, title, state }, onArchiveTask, onPinTask }) {
Expand Down

0 comments on commit 324d754

Please sign in to comment.