code: function parseClassProps(text) {
    const result = {};
    const classes = text.split(' ');
    classes.forEach(className => {
      result[className] = true
    });
    return result;
  }
docs: Given a space-separated string of class names like "foo bar", return a props object like { foo: true, bar: true }.