   The resulting `<div>` tag is formatted specifically for the included javascript
   helper to then turn into your named React component.
   """
-  @spec react_component(name :: String.t) :: Phoenix.HTML.safe
+  @spec react_component(name :: String.t()) :: Phoenix.HTML.safe()
   def react_component(name), do: react_component(name, %{})
 
   @doc """

  The resulting `<div>` tag is formatted specifically for the included javascript
  helper to then turn into your named React component and then pass in the props specified.
  """
  @spec react_component(name :: String.t, props :: map, opts :: [target_id: String.t]) :: Phoenix.HTML.safe
  def react_component(name, props, opts) when is_map(props) do
    props = Poison.encode!(props)


  The resulting `<div>` tag is formatted specifically for the included javascript
  helper to then turn into your named React component and then pass in the props specified.
  """
  @spec react_component(name :: String.t(), props :: list | map) :: Phoenix.HTML.safe()
  def react_component(name, props) when is_list(props) do
    react_component(name, Enum.into(props, %{}))
  end
