You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Adapted from https://github.com/facebook/react/blob/37e4329bc81def4695211d6e3795a654ef4d84f5/packages/react-dom/src/server/escapeTextForBrowser.js#L49
17
17
letescapeHtml(str:string)=
@@ -36,9 +36,9 @@ let escapeHtml (str: string) =
36
36
escaped.ToString()
37
37
38
38
let inlineprivateaddUnit(key:string)(value:string)=
39
-
if unitlessCssProps|> Set.contains key |>not
40
-
thenvalue +"px"
41
-
else value
39
+
if unitlessCssProps.Contains key
40
+
thenvaule
41
+
else value+"px"
42
42
43
43
letprivatecssProp(key:string)(value:obj)=
44
44
letvalue=
@@ -743,7 +743,7 @@ let renderToString (htmlNode: ReactElement): string =
0 commit comments