function isDirectValueOfRenderProperty(node, propNamePattern) {
  return (
    node
    && node.parent
    && node.parent.type === 'Property'
    && node.parent.key
    && node.parent.key.type === 'Identifier'
    && propMatchesRenderPropPattern(node.parent.key.name, propNamePattern)
  );
}
Check whether given node is declared directly inside a render property
```jsx
const rows = { render: () => <div /> }
<Component rows={ [{ render: () => <div /> }] } />
 ```
@param {ASTNode} node The AST node
@param {string} propNamePattern The pattern to match render props against
@returns {boolean} True if component is declared inside a render property, false if not