Skip to content

Commit 6662afc

Browse files
committed
Rename stringComponent to unsafeCreateDOMComponent
1 parent 7a77a30 commit 6662afc

File tree

4 files changed

+124
-124
lines changed

4 files changed

+124
-124
lines changed

Diff for: codegen/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ props.elements.html
5555
. Union attrs attrs_ (SharedProps Props_${e})
5656
=> Record attrs
5757
-> JSX
58-
${symbol} = createElement (stringComponent "${e}")${
58+
${symbol} = createElement (unsafeCreateDOMComponent "${e}")${
5959
noChildren ? "" : `
6060
6161
${e}_ :: Array JSX -> JSX

Diff for: generated-docs/React/Basic.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Create a `JSX` node from a React component, by providing the props.
2727
#### `createElementKeyed`
2828

2929
``` purescript
30-
createElementKeyed :: forall props. ReactComponent props -> String -> props -> JSX
30+
createElementKeyed :: forall props. ReactComponent { | props } -> { key :: String | props } -> JSX
3131
```
3232

3333
Like `createElement`, plus a `key` for rendering components in a dynamic list.

Diff for: generated-docs/React/Basic/DOM.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ type SharedProps specific = (key :: String, about :: String, acceptCharset :: St
3838

3939
Standard props which are shared by all DOM elements.
4040

41-
#### `stringComponent`
41+
#### `unsafeCreateDOMComponent`
4242

4343
``` purescript
44-
stringComponent :: forall props. String -> ReactComponent props
44+
unsafeCreateDOMComponent :: forall props. String -> ReactComponent props
4545
```
4646

4747
#### `Props_a`

0 commit comments

Comments
 (0)