Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

horese-koa

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

horese-koa

Rise a koa server with hot reloading in dev env, with no conf!

  • 0.1.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

horese-koa

Rise a koa server with hot reloading in dev env, with no conf!

how to build a react project from scratch, with no conf!

create an npm project

 mkdir my_project
 cd my_project
 npm init

install horese-koa...

npm i --save horese-koa

... and React

 npm i --save react react-dom

create your first project

add 2 file "src/index.js and "src/app.js"

mkdir src
touch src/index.js
touch src/app.js

this is the file contents:

src/index.js

import React from 'react';
import ReactDOM from 'react-dom';
import App from './app'
ReactDOM.render(
   (<App />),
   document.getElementById('react_body')
);

src/app.js

import React from 'react';

class App extends React.Component {
 render(){
   return <div>React Super Simple example with hot reloading and error catch</div>
 }
}

export default App;

###create the running script on your package .json add:

 "scripts": {
    ...
    "dev":"horese-koa-server"
  },

###run your project

npm run dev

that's it! you will have your react project with hotreloading running!. no webpack or babel config!

FAQs

Package last updated on 28 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc