Skip to content

Commit

Permalink
React DOM. Remove redundant raw prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Jan 7, 2025
1 parent 6c6c71d commit b5efd90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import react.Render
import react.createElement

fun renderToString(handler: Render): String =
rawRenderToString(createElement<Props>(handler))
renderToString(element = createElement<Props>(handler))

fun renderToStaticMarkup(handler: Render): String =
rawRenderToStaticMarkup(createElement<Props>(handler))
renderToStaticMarkup(element = createElement<Props>(handler))
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ import react.ReactNode

// See https://reactjs.org/docs/react-dom-server.html

@JsName("renderToStaticMarkup")
external fun rawRenderToStaticMarkup(element: ReactNode?): String
external fun renderToStaticMarkup(element: ReactNode?): String
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ import react.ReactNode

// See https://reactjs.org/docs/react-dom-server.html

@JsName("renderToString")
external fun rawRenderToString(element: ReactNode?): String
external fun renderToString(element: ReactNode?): String

0 comments on commit b5efd90

Please sign in to comment.