New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-hero

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hero

Tools to get started with react quickly

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

ReactHero

Tools to get started with react quickly

Install

$ npm install react-hero --save

Usage

Create Server

Create HTML file

You must have and index.html file in the current directory

$ touch index.html

Start Server

const ReactHero = require('react-hero');

ReactHero.createServer('entry.js', 'assets/bundle.js', 'localhost', 8080)

Reference the server and output file in your HTML file

<html>
  <body>
    ...
    <script src="http://localhost:8080/assets/bundle.js"></script>
  </body>
</html>

NOTE: Make sure host, port, and outputFile match what was passed to .createServer(...)

View the html file

Visit http://localhost:8080

NOTE: Make sure host and port are the ones specified when creating the server

Create Distribution File

const ReactHero = require('react-hero');

ReactHero.createDistribution('entry.js', 'dist/bundle.js')

FAQs

Package last updated on 06 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