-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6ad8225
Showing
7 changed files
with
3,327 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
lib | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.