Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Formality-App

Front-end application renderer for Formality Lang.
147 changes: 0 additions & 147 deletions dist/index.js

This file was deleted.

File renamed without changes.
File renamed without changes.
685 changes: 685 additions & 0 deletions docs/index.js

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions docs/inferno-hooked.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
var stateOf = {};
const buildUseState = self => state => {
const setState = newState => {
stateOf[self._id] = newState;
self.forceUpdate();
};
if (!self._id) {
self._id = "x" + Math.floor(Math.random() * (2 ** 32));
stateOf[self._id] = state;
}
return [stateOf[self._id], setState];
};

function Hooked(render) {
class Self extends Component {
constructor(props) {
super(props)
}
componentDidMount() {
}
render() {
return render({useState: buildUseState(this)});
}
};
return Self;
};

module.exports = Hooked;
Loading