File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,14 @@ type UISpec props state eff = { render :: Render props state eff, displayName ::
160
160
161
161
A specification of a component.
162
162
163
+ #### ` UIFactory `
164
+
165
+ ``` purescript
166
+ type UIFactory props = props -> UI
167
+ ```
168
+
169
+ Factory function for components.
170
+
163
171
#### ` spec `
164
172
165
173
``` purescript
@@ -211,7 +219,7 @@ Transform the component state by applying a function.
211
219
#### ` mkUI `
212
220
213
221
``` purescript
214
- mkUI :: forall props state eff. UISpec props state eff -> props -> UI
222
+ mkUI :: forall props state eff. UISpec props state eff -> UIFactory props
215
223
```
216
224
217
225
Create a component from a component spec.
@@ -248,4 +256,12 @@ renderToElementById :: forall eff. String -> UI -> Eff (dom :: DOM | eff) UI
248
256
249
257
Render a component to the element with the specified ID.
250
258
259
+ #### ` createElement `
260
+
261
+ ``` purescript
262
+ createElement :: forall props. UIFactory props -> props -> Array UI -> UI
263
+ ```
264
+
265
+ Create an element from a component factory.
266
+
251
267
You can’t perform that action at this time.
0 commit comments