vix-vdom
v1.0.3
Published
Vix is a fast, minimal virtual dom library. Useful for small to medium sized frontend applications, Vix allows for rapid prototyping or production development.
Readme
Vix
Vix is a fast, minimal virtual dom library. Useful for small to medium sized frontend applications, Vix allows for rapid prototyping or production development.
Installation
npm i vix-vdom babel-preset-reactUsage/Examples
/** @jsx h */
import { h } from 'vix-vdom'
function App() {
const text = "This is an example"
return (
<div>
<div>{ text }</div>
<p>With an image:</p>
<img src="https://media.giphy.com/media/26gsjCZpPolPr3sBy/giphy.gif" alt="Seth myers lol" />
</div>
)
}
export default AppFor setting up jsx, use babel along with the babel configuration in .babelrc.
For more examples please check the examples/ directory.
Contributing
Contributions are always welcome!
See CONTRIBUTING.md for ways to get started.
Please adhere to this project's code of conduct.
