The find() function has one parameter, which is the local ID of a component within the markup. find() returns different types depending on the result. If the local ID is unique, find() returns the component. If there are multiple components with the same local ID, find() returns an array of the components.