Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
fether
Commits
2a328480
Commit
2a328480
authored
Jun 29, 2018
by
Amaury Martiny
Browse files
Add basic readme files
parent
876fc70a
Changes
5
Hide whitespace changes
Inline
Side-by-side
packages/fether-electron/README.md
0 → 100644
View file @
2a328480
# fether-electron
Electron wrapper around
`fether-react`
.
packages/fether-react/README.md
0 → 100644
View file @
2a328480
# fether-react
Fether React SPA app.
packages/fether-react/src/utils/withBalance.js
View file @
2a328480
...
...
@@ -19,7 +19,7 @@ import light from 'light-hoc';
* A HOC on light.js to get the current balance.
*
* @example
* @withBalance
* @withBalance
()
* class MyComponent extends React.Component{
*
* }
...
...
packages/fether-ui/README.md
View file @
2a328480
# fether-ui
UI components used in Fether.
## TODO
Use Semantic UI (or another UI libray) as a base, instead of recoding everything ourselves.
packages/light-hoc/README.md
View file @
2a328480
...
...
@@ -3,3 +3,23 @@
A HOC to use
[
@parity/light.js
](
https://github.com/parity-js/light.js
)
with React. Basically the equivalent of oo7-react for Observables.
Probably this should go inside its own repo.
## Usage
The libray provides a higher-order component to use these Observables easily with React apps.
```
javascript
import
light
from
'
???
'
;
// ??? to be decided
import
{
syncing$
}
from
'
@parity/light.js
'
;
@
light
({
syncingVariable
:
syncing$
})
class
MyClass
extends
React
.
Component
{
render
()
{
return
<
div
>
{
JSON
.
stringify
(
this
.
props
.
syncingVariable
)}
<
/div>
;
}
}
```
The UI will automatically update when the syncing state changes.
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