Browse Source

Change text "Click me" to somthing else (#4697)

The Text "Click me" in the button confuses first-time users because it forces them to actually click on the button in the live demo but it does nothing. By changing the text, we can control the user behavior as they don't expect anything on that click.
main
Surjith S M 3 years ago
committed by GitHub
parent
commit
c209465d76
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      beta/src/pages/learn/index.md

4
beta/src/pages/learn/index.md

@ -28,7 +28,7 @@ React components are JavaScript functions that return markup:
```js ```js
function MyButton() { function MyButton() {
return ( return (
<button>Click me</button> <button>I'm a button</button>
); );
} }
``` ```
@ -56,7 +56,7 @@ Have a look at the result:
function MyButton() { function MyButton() {
return ( return (
<button> <button>
Click me I'm a button
</button> </button>
); );
} }

Loading…
Cancel
Save