Fresh.js is a rendering framework started as an experiemental project to understand current rendering frameworks like React & Vue.
This package is currently under active development and should be considered unstable. There is heaving retooling, restructuring, reconfiguring, reflowing, hard-hat zone, construction 500ft ahead, men working overhead, watch your head.
That said, there is a Github repository that you can always submit issues to. 👍
This is the core framework for Fresh.js. This is all you need to work with Fresh.js.
npm install -s babel-cli@6.26.0 babel-core@6.26.3 babel-plugin-syntax-jsx@6.18.0 babel-plugin-transform-react-jsx@6.24.1 babel-preset-react@^6.24.1
npm install -s freshjs-core
$ touch .babelrc
$ echo "{\"presets\": [\"react\"],\"plugins\": [\"babel-plugin-syntax-jsx\",[\"babel-plugin-transform-react-jsx\",{ \"pragma\": \"Fresh.dom\" }]]}" > . .babelrc
// ES6
import Fresh from 'freshjs-core';
class App extends Fresh.Element {
constructor() {
super();
}
template() {
return <div>It's Fresh</div>
}
}
Fresh.render(App, document.querySelector('#app'));
$ parcel public/index.html --out-dir dist
Server running at http://localhost:1234
✨ Built in 643ms.
Fresh.js was developed and tested using the Parcel. While it is absolutely possible to use Webpack, I currently do not have instructions ready for such an actively-developed and growing framework, but it's on the list.