React supports a very special attribute Ref that you can use to bind to any component output by render().

React Refs syntax

This special attribute allows you to reference the corresponding backing instance returned by render(). This ensures that you always get the correct instance at any time.

React Refs example

    php.cn React 实例    

Run instance »

Click the "Run instance" button to view the online instance