Skip to content

Commit 82ea9ee

Browse files
committed
Adding displayName to the spec
1 parent 218a672 commit 82ea9ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/React.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ type Render props state eff =
143143
-- | A specification of a component.
144144
type UISpec props state eff =
145145
{ render :: Render props state eff
146+
, displayName :: String
146147
, getInitialState
147148
:: UIRef ->
148149
Eff ( props :: ReactProps props
@@ -205,6 +206,7 @@ type UISpec props state eff =
205206
spec :: forall props state eff. state -> Render props state eff -> UISpec props state eff
206207
spec st render =
207208
{ render: render
209+
, displayName: ""
208210
, getInitialState: \_ -> pure st
209211
, componentWillMount: \_ -> return unit
210212
, componentDidMount: \_ -> return unit

0 commit comments

Comments
 (0)