I'm trying to output an editable field in a component of my React-based Sitecore JSS application:
import React from 'react';
import PropTypes from 'prop-types';
const AwesomeComponent = ({ fields }) => {
return <div>{fields.title.editable} is awesome!</div>;
However when I add the component to a route and open it in the Experience Editor, I don't see an editable field, just some markup:
What am I doing wrong?