Skip to content

Commit ea3fff6

Browse files
committed
Remove unnecessary variables, change confusing prop name
1 parent 7446e9e commit ea3fff6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lessons/07-compound-components/exercise/DateFields.final.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ const DateFieldsContext = createContext()
77
export default function DateFields({
88
children,
99
defaultValue,
10-
start,
11-
end,
1210
value: controlledValue,
1311
onChange
1412
}) {

lessons/07-compound-components/exercise/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Your task is to use context to give rendering control back to the consumer. So i
2626
value={...}
2727
start={...}
2828
end={...}
29-
onSelect={...}
29+
onChange={...}
3030
/>
3131
```
3232

0 commit comments

Comments
 (0)