I want to make content editable by using contenteditable
attribute. But when I add it to my component - it's nowhere to be found.
class CompName extends React.Component {
render() {
return (
<div className="CompName" >
<div contenteditable={true}>Somecontent</div>
</div>
);
}
}
Tried using true
as string as well. Am I missing something fundamental here? I'm fairly new to React..
I am using react-rails
gem.