Skip to content

Commit

Permalink
Initial code
Browse files Browse the repository at this point in the history
  • Loading branch information
gimenete committed Mar 27, 2018
0 parents commit 6ad8225
Show file tree
Hide file tree
Showing 7 changed files with 3,327 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lib
node_modules
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DIY modern JavaScript framework based on Virtual DOM

Basic example on how to sync the state and the UI using Virtual DOM. It implements an API similar to React.

- Check out `src/index.js` to see an example of component.
- Check out `src/component.js` to see the _core_ of the _framework_.

## Running

- Install dependencies: `npm install`
- Build it: `npm run build` or _watch_ if you want to make changes and rebuild automatically
- Open `index.html`
43 changes: 43 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<html>
<head>
<style>
body {
font-family: sans-serif;
}

#addressList {
width: 300px;
}

input {
font-size: 30px;
}

.help {
color: gray;
}

.hidden {
display: none;
}

ul {
list-style-type: none;
padding: 0;
}

a {
color: red;
float: right;
cursor: pointer;
}
</style>

</head>

<body>
<div id="addressList"></div>
<script src="lib/bundle.js"></script>
</body>

</html>
Loading

0 comments on commit 6ad8225

Please sign in to comment.