text: import { RadioGroup } from 'react-formalize';
  import React, { createClass, PropTypes } from 'react';
  
  export default createClass({
  
      displayName: 'RadioGroup',
  
      propTypes: {
          name: PropTypes.string.isRequired,
          options: PropTypes.object.isRequired
      },
  
      renderOptions(options, Radio) {
          const children = [];
          for (const value in options) {
              if (!options.hasOwnProperty(value)) continue;
              const label = options[value];
              children.push(
                  <div className="radio" key={value}>
                      <label>
                          <Radio value={value}/>
                          {' '}
                          {label}
                      </label>
                  </div>
              );
          }
          return <div>{children}</div>;
      },
  
      render() {
          const { name, options, ...props } = this.props;
          return (
              <RadioGroup name={name}>
                  {this.renderOptions.bind(this, options)}
              </RadioGroup>
          );
      }
  });
  