View Source Phoenix.React (Phoenix.React v0.1.0)

Summary

Functions

Render a React component to a string by call renderToStaticMarkup in react-dom/server

Render a React component to a string by call renderToString in react-dom/server

Types

file()

@type file() :: binary()

props()

@type props() :: map()

Functions

render_to_static_markup(file, props)

@spec render_to_static_markup(file(), props()) :: {:ok, binary()} | {:error, term()}

Render a React component to a string by call renderToStaticMarkup in react-dom/server

render_to_string(file, props)

@spec render_to_string(file(), props()) :: {:ok, binary()} | {:error, term()}

Render a React component to a string by call renderToString in react-dom/server