freact
v0.0.0
Published
quickly start a new react project
Downloads
4
Readme
freact
| frēˈakt |
To freely start a new React project.
Quick Use
Go to the freact store.
npm i -g freact
Do some React in a file called app.js
.
var React = require("react");
var ReactDOM = require("react-dom");
var App = function() {
return {
render: function() {
return <h1>Holy cow it worked!</h1>
}
};
}
ReactDOM.render(<App />, document.body);
Serve up that React.
freact start
Slow Use
TODO
freact new <name-of-project>
Creates new directory and populates with boilerplate code.- Defaults to current directory.
freact start <port-number>
Attempts to serveapp.js
out of current directory.- Defaults to port
8000
- Defaults to port
Notes
- Uses a tiny express server.
- Kinda slow to reload because the javascript is recompiled with every request to
/freact-javascript
.