Feature Search State
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, react
- Lĩnh vực
- frontend
Hướng nghiên cứu
Mở src/Search.js và kiểm tra trường nhập tên khách hàng cùng component bao quanh nó. Thêm state searchInput và input handler được yêu cầu, sau đó xác minh rằng việc nhập liệu cập nhật trường và ghi lại giá trị đã nhập bằng console.log().
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Storing the search input in a state
Instructions:
Implement the functionality to search for a customer name given the text typed into the customer name field.
In the src/Search.js file, declare a new state variable named searchInput with the corresponding setter function setSearchInput (hint: use the React function useState). The initial value of the searchInput variable can be an empty string. Add a value property to the <input> tag that is set to the new searchInput state variable.
Create a new function handleSearchInput taking an event parameter. This function should use the setSearchInput function to update the state variable searchInput with what the user typed in the input field. Finally, add a onChange prop to the <input> tag that is set to the function handleSearchInput. Use console.log() to output the value received in the handleSearchInput function.
Hint: Use event.target.value to get the input value.
Test:
- Given a searchInput
- When I type in the field
- Then the value is logged
- Ngôn ngữ chính
- JavaScript
- Star
- 1
- Fork
- 28
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CodeYourFuture/React-Module-Project
-
Feature Error Message Đang mở♟️ Dependent ticket 🏕 Priority Mandatory 🐇 Size Small 📅 Week 3 📅 Week 4
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Feature Loading Message Đang mở🏕 Priority Mandatory 🐂 Size Medium 📅 Week 4 🧩 Feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Feature Active Row Đang mở🏝️ Priority Stretch 🐂 Size Medium 📅 Week 2 🧩 Feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Feature Bookings state Đang mở🏕 Priority Mandatory 🐇 Size Small 📅 Week 2 🧩 Feature
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
-
Feature RestaurantButton Đang mở♟️ Dependent ticket 🏕 Priority Mandatory 🦔 Size Tiny
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Tất cả issue của CodeYourFuture/React-Module-Project
Issue tương tự
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Improve Title Support Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
georgestephanis/p2026#40 ·
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·