text: import React, { Component } from 'react'
  import { Rating } from 'semantic-ui-react'
  
  export default class RatingExampleOnRate extends Component {
      state = {}
  
      handleRate = (e, { rating, maxRating }) =>
          this.setState({ rating, maxRating })
  
      render() {
          return (
              <div>
                  <Rating maxRating={5} onRate={this.handleRate} />
                  <pre>{JSON.stringify(this.state)}</pre>
              </div>
          )
      }
  }
  