Mastering React Test-Driven Development by Daniel Irvine
Author:Daniel Irvine [Daniel Irvine]
Language: eng
Format: epub
Tags: COM060080 - COMPUTERS / Web / General, COM051260 - COMPUTERS / Programming Languages / JavaScript, COM051390 - COMPUTERS / Programming / Open Source
Publisher: Packt
Published: 2019-05-03T02:44:43+00:00
Filtering data
The Git tag for this section is filtering.
Let's add a textbox that the user can use to filter names. Each character that the user types into the search field will cause a new fetch request to be made to the server. That request will contain the new search term as provided by the search box.
The /customers endpoint supports a parameter named searchTerm, which filters search results using those terms. Adding this functionality will highlight the design mistake we made earlier:
For this feature, we'll hook on to the change event handler for the input box. Since it will cause an asynchronous fetch request, we know we'll need to use async act to wait for this to happen. Let's build changeAndWait now; add the following to the return object of createContainer in test/domManipulators.js:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
2021 Beginners Guide to Python Programming Language: A Crash Course to Mastering Python in One Hour by Elmer Gary & Elmer Gary(1828)
API Testing and Development with Postman by Dave Westerveld(1536)
Learning C# by Developing Games with Unity 2020 by Harrison Ferrone(1502)
Machine Learning for Algorithmic Trading by Stefan Jansen(1469)
Software Architecture for Busy Developers by Stéphane Eyskens(1459)
Hands-On ROS for Robotics Programming by Bernardo Ronquillo Japón(1439)
Delphi GUI Programming with FireMonkey by Andrea Magni(1299)
Cloud Native with Kubernetes by Alexander Raul(1268)
Game Development Projects with Unreal Engine by Hammad Fozi & Goncalo Marques & David Pereira & Devin Sherry(1252)
Automate It with Zapier by Kelly Goss(1220)
Software Architecture Patterns for Serverless Systems by John Gilbert(1217)
Datadog Cloud Monitoring Quick Start Guide by Thomas Kurian Theakanath(1194)
Practical System Programming for Rust Developers by Prabhu Eshwarla(1192)
Practical Node-RED Programming by Taiji Hagino(1181)
Mastering React Test-Driven Development by Daniel Irvine(1162)
Delphi Programming Projects by William Duarte(1157)
Learn Spring for Android Application Development by S. M. Mohi Us Sunnat(1122)
Ghidra Software Reverse Engineering for Beginners by A. P. David(1122)
Developing Multi-Platform Apps with Visual Studio Code by Ovais Mehboob Ahmed Khan & Khusro Habib & Chris Dias(1118)