Comments (5)
@djleonskennedy There is semi-finished guide here
https://gozala.gitbooks.io/reflex/content/
from reflex.
Current implementation is based on Elm 0.16, in 0.17 they introduced breaking API changes and new concepts like subscriptions plan was to update this library to match new API and also update guide accordingly, unfortunately I have not got around to wrapping that work up.
Than being said linked guide matches API of the library in it's current state.
from reflex.
Where is a good place to report issues/problems when reading the docs?
I found that the reflex-virtual-dom-driver/examples/counter is different from the docs and that the sample in the docs uses the address/send API differently than the examples. The one from the examples works for me, whereas the one from the Docs(Introduction) does not in my environment:
"reflex": "^0.4.1",
"reflex-virtual-dom-driver": "^0.2.5"
Docs(Introduction):
export const view =
(model:Model, send:Address<Command>):DOM =>
html.section({ className: "counter" }, [
html.button({
onClick: event => send({ type: "Decrement" })
}, ["-"]),
html.output({
className: "value"
}, [`${model.value}`]),
html.button({
onClick: event => send({ type: "Increment" })
}, ["+"])
])
Docs(Basics):
export const view = (model:Model, address:Address<Message>):DOM =>
html.section({
className: "counter"
}, [
html.button({
onClick: forward(address, createIncrement)
}, ["-"]),
html.output({
className: "value"
}, [`${model.value}`]),
html.button({
onClick: forward(address, createDecrement)
}, ["+"])
])
Example:
export const view =
( model/*:Model*/
, address/*:Address<Action>*/
)/*:DOM*/ =>
html.span
( { key: "counter"
}
, [ html.button
( { key: "decrement"
, onClick: forward(address, Decrement)
}
, ["-"]
)
, html.span
( { key: "value"
, style: counterStyle.value
}
, [ `${model.value}` ]
)
, html.button
( { key: "increment"
, onClick: forward(address, Increment)
}
, ["+"]
)
]
)
from reflex.
Where is a good place to report issues/problems when reading the docs?
@spaghet feel free to open issues in this repo.
I found that the reflex-virtual-dom-driver/examples/counter is different from the docs and that the sample in the docs uses the address/send API differently than the examples. The one from the examples works for me, whereas the one from the Docs(Introduction) does not in my environment:
Can you elaborate (in the separate issue) what do you mean by does not work ? Are the exceptions thrown ? Is something else gets rendered ?
from reflex.
Cool, thanks!
It's been a bit since I went over this so I will get back to you.
from reflex.
Related Issues (20)
- State changes to computed properties should no got to state
- Deep nesting for units. HOT 1
- Merge atom / set / component / unit into a simpler concept HOT 2
- Improve reactor API HOT 2
- operations are discrete events
- Hi, what is reflex? HOT 2
- Status & spiritual successor
- Allow children to be iterator
- View driver should have a development hooks HOT 1
- Task.io may cause an infinite loop HOT 1
- Is it production ready yet ? HOT 3
- Effects.batch should complain if it doesn't get called with an array HOT 3
- Bundled, minified distribution without node dependency? HOT 6
- `thunk` type annotations are incorrect HOT 2
- node() does not support namespacing for SVG elements HOT 4
- A typo in README
- Duplicate name HOT 1
- Wiki changes HOT 1
- CODE_OF_CONDUCT.md file missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reflex.