CodeYourFuture / CodeYourFuture/React-Module-Project

Feature Search onSubmit

オープン
#18 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
♟️ Dependent ticket 🐇 Size Small 📅 Week 3 🧩 Feature
主要言語
JavaScript
スター
1
フォーク
28
PR マージ指標
30日以内にマージされた PR はありません

説明

### 18. Triggering search when submitting the form

Depends on #17

**Instructions:**

Still in the `` component, add a `onSubmit` handler to the `` tag. When the form is submitted (try clicking the search button), get the value of the state `searchInput` and pass it as a parameter to the `search` prop function that has been provided for you (the `search` prop is passed from the `` component).

**Note:** Your submit handler should take an `event` parameter and add the line `event.preventDefault()` to prevent the browser from implicitly submitting the form

**Test:**

Given a searchInput field with input values entered
When the form is submitted
Then the value of searchInput is passed as a parameter to search

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。