https://github.com/lioncat2002/smikejs
A JSX framework
https://github.com/lioncat2002/smikejs
framework frontend javascript react
Last synced: about 1 year ago
JSON representation
A JSX framework
- Host: GitHub
- URL: https://github.com/lioncat2002/smikejs
- Owner: Lioncat2002
- License: apache-2.0
- Created: 2023-08-13T14:04:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-02T12:59:31.000Z (over 2 years ago)
- Last Synced: 2025-02-09T20:16:06.116Z (about 1 year ago)
- Topics: framework, frontend, javascript, react
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SmikeJS
> SmikeJS is a react-esque jsx framework which lets you make frontend applications super fast!
## Usage:
To use SmikeJS, just drop in the Smike.js file into your project and you will be ready to go!
## Example:
### SmikeJS Counter App:
```js
import Smike from "./Smike"
/** @jsx Smike.createElement */
const container=document.getElementById("app")
function Counter(){
const [state,setState]=Smike.useState(1)
return (
setState(c=>c+1)}>
Counter: {state}
)
}
const element =
Smike.render(element, container)
```