import React from "react"; const CommentContext = React.createContext(); // This function takes a component... export function Comment(Component) { // ...and returns another component... return function(props) { // ... and renders the wrapped component with the context theme! // Notice that we pass through any additional props as well return ( {app => } ); }; } export { CommentContext }; export default Comment;