Skip to content

Commit a28e226

Browse files
authored
Added missing login text in jsx
Login text added as child. Transpiled code has 'Login' as child but jsx code didn't have 'Login'
1 parent b18964f commit a28e226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396

397397
```javascript
398398
const Button = ({ onLogin }) =>
399-
<div id={'login-btn'} onClick={onLogin} />
399+
<div id={'login-btn'} onClick={onLogin}>Login</div>
400400
```
401401

402402
Then JSX gets transpiled to a `React.createElement()` function tree:

0 commit comments

Comments
 (0)