I have the following code in a basic react app
import React from 'react';
import './App.css';
function genColor() {
return <div style="#000000">Test</div>;
}
function App() {
return (
<div className="App">
{this.genColor()}
</div>
);
}
export default App;
Calling genColor in the App function, but get

How am I screwing this up?
{genColor()}or more appropriately,<genColor />