Constructor
new DetailedViewController(props)
Bind methods
Parameters:
Name | Type | Description |
---|---|---|
props |
Array.<any> |
Extends
- React.Component
Methods
updateDetailedDrink(id)
Updates state's detailed drink id.
Parameters:
Name | Type | Description |
---|---|---|
id |
number | Id of drink to switch to |
updateDetailedIngrident(id)
Updates state's detailed ingredient id.
Parameters:
Name | Type | Description |
---|---|---|
id |
number | Id of ingredient to switch to |