UNPKG

react-on-rails

Version:

react-on-rails JavaScript for react_on_rails Ruby gem

9 lines (8 loc) 425 B
import { ReactComponentOrRenderFunction, RenderFunction } from "./types/index"; /** * Used to determine we'll call be calling React.createElement on the component of if this is a * Render-Function used return a function that takes props to return a React element * @param component * @returns {boolean} */ export default function isRenderFunction(component: ReactComponentOrRenderFunction): component is RenderFunction;