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 f625a9d commit 2076b44
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 @@ -131,6 +131,8 @@ Now we have Storybook setup, styles imported, and test cases built out, we can q
The component is still basic at the moment. First write the code that achieves the design without going into too much detail:

```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 2076b44

Please sign in to comment.