Can I call a function in a different React component?

For example, 

```
--index.js--
<component1 />
<component2 />
---------------

```

When I click or input value to an element(such as a text input) in Component1, I want to focus on a button in Component2

Is it possible?