Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Nov 29, 2024
1 parent fd8c388 commit 7a84189
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/static/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"code": "button-has-type",
"docs": "Checks that a `<button>` JSX element has a valid `type` attribute. The default\nvalue is `\"submit\"` which is often not the desired behavior.\n\n### Invalid:\n\n```tsx\n<button />\n<button type=\"foo\" />\n<button type={condition ? \"foo\" : \"bar\"} />\n<button type={foo} />\n<button type={2} />\n```\n\n### Valid:\n\n```tsx\n<button type=\"submit\" />\n<button type=\"button\" />\n<button type=\"reset\" />\n<button type={condition ? \"button\" : \"submit\"} />\n```\n",
"tags": [
"recommended",
"react",
"jsx",
"fresh"
Expand Down

0 comments on commit 7a84189

Please sign in to comment.