Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-reactix
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
purescript-reactix
Commits
9ac52653
Commit
9ac52653
authored
Apr 18, 2019
by
James Laver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix R.named
parent
71f3fe0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
React.js
src/Reactix/React.js
+1
-1
React.purs
src/Reactix/React.purs
+1
-1
Spec.purs
test/Reactix/React/Spec.purs
+1
-1
No files found.
src/Reactix/React.js
View file @
9ac52653
...
...
@@ -47,4 +47,4 @@ exports._createContext = function(ctor, val) {
exports
.
_render
=
function
(
a
,
b
)
{
return
react_dom
.
render
(
a
,
b
);
};
exports
.
_named
=
function
(
name
,
f
)
{
f
.
name
=
name
;
return
f
;
};
exports
.
_named
=
function
(
name
,
f
)
{
Object
.
defineProperty
(
f
,
'name'
,
{
value
:
name
,
writable
:
false
})
;
return
f
;
};
src/Reactix/React.purs
View file @
9ac52653
...
...
@@ -74,7 +74,7 @@ pureLeaf ::
=> String
-> (Record props -> Element)
-> Component props
pureLeaf name f = named name
d
$ Component (mkEffectFn1 $ pure <<< f)
pureLeaf name f = named name $ Component (mkEffectFn1 $ pure <<< f)
-- | Creates a pure tree component from a function
pureTree ::
...
...
test/Reactix/React/Spec.purs
View file @
9ac52653
...
...
@@ -46,7 +46,7 @@ staticTest =
type CounterProps = ( count :: Int )
counterCpt :: R.Component CounterProps
counterCpt = R.hooksLeaf cpt
counterCpt = R.hooksLeaf
"Counter"
cpt
where
cpt :: forall m. R.MonadHooks m => Record CounterProps -> m R.Element
cpt {count} = do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment