File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import TabButton from './components/TabButton';
5
5
import { CORE_CONCEPTS } from './data/core-concepts' ;
6
6
7
7
function App ( ) {
8
- function handleSelect ( ) {
9
- console . log ( 'Tab selected' ) ;
8
+ function handleSelect ( selectedTab ) {
9
+ console . log ( selectedTab ) ;
10
10
}
11
11
12
12
return (
@@ -29,10 +29,12 @@ function App() {
29
29
< section id = "examples" >
30
30
< h2 > Examples</ h2 >
31
31
< menu >
32
- < TabButton onSelect = { handleSelect } > Components</ TabButton >
33
- < TabButton onSelect = { handleSelect } > Props</ TabButton >
34
- < TabButton onSelect = { handleSelect } > State</ TabButton >
35
- < TabButton onSelect = { handleSelect } > JSX</ TabButton >
32
+ < TabButton onSelect = { ( ) => handleSelect ( 'components' ) } >
33
+ Components
34
+ </ TabButton >
35
+ < TabButton onSelect = { ( ) => handleSelect ( 'jsx' ) } > JSX</ TabButton >
36
+ < TabButton onSelect = { ( ) => handleSelect ( 'props' ) } > Props</ TabButton >
37
+ < TabButton onSelect = { ( ) => handleSelect ( 'state' ) } > State</ TabButton >
36
38
</ menu >
37
39
Dynamic Content
38
40
</ section >
You can’t perform that action at this time.
0 commit comments