Skip to content

Commit cb038c8

Browse files
authored
Merge pull request #11 from tmcl/patch-1
use R.toElement for ReactNative compatibility
2 parents 0905710 + 7cec690 commit cb038c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Concur/React.purs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import Data.Either (Either(..))
1111
import Data.Tuple (Tuple(..))
1212
import Effect.Console (log)
1313
import React as R
14-
import React.DOM as D
1514
import React.DOM.Props as P
1615
import Unsafe.Coerce (unsafeCoerce)
1716

@@ -54,8 +53,7 @@ componentClass winit = R.component "Concur" component
5453
handler _ (Left err) = do
5554
log ("FAILED! " <> show err)
5655
pure unit
57-
-- TODO: Refine the div wrapper. This is just a placeholder.
58-
render st = D.div' st.view
56+
render st = R.toElement st.view
5957

6058
renderComponent :: forall a. Widget HTML a -> R.ReactElement
6159
renderComponent init = R.createLeafElement (componentClass init) {}

0 commit comments

Comments
 (0)