import TestCase from '../../TestCase'; import Iframe from '../../Iframe'; const React = window.React; class OnSelectIframe extends React.Component { state = {count: 0, value: 'Select Me!'}; _onSelect = event => { this.setState(({count}) => ({count: count + 1})); }; _onChange = event => { this.setState({value: event.target.value}); }; render() { const {count, value} = this.state; return ( ); } } export default class OnSelectEventTestCase extends React.Component { render() { return (
  • Highlight some of the text in the input below
  • Move the cursor around using the arrow keys
  • The displayed count should increase as you highlight or move the cursor
    ); } }