May 2019
Intermediate to advanced
496 pages
10h 38m
English
It's the App component that will pass renderCustomerActions to CustomerSearch, so let's build that:
const renderSearchActionsForCustomer = customer => { searchCustomers(); const customerSearch = elementMatching(type(CustomerSearch)); const searchActionsComponent = customerSearch.props.renderCustomerActions; return searchActionsComponent(customer);};it('passes a button to the CustomerSearch ...Read now
Unlock full access