Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hasiniwijerathna/react-hooks

React "Hooks" at a Glance
https://github.com/hasiniwijerathna/react-hooks

Last synced: 5 days ago
JSON representation

React "Hooks" at a Glance

Awesome Lists containing this project

README

        

# React-Hooks
React "Hooks" at a Glance :neckbeard:

Implementation of the new react feature "Hooks".
Available react version - React v16.8.0-alpha.1.

## Things need to know,

- Only call Hooks at the top level
- Only call Hooks from React function component

Read more [Hooks](https://reactjs.org/docs/hooks-overview.html#-state-hook) on React docs :clap:

## Requirements
For development, you will only need Node.js installed on your environement.

## Node
Node is really easy to install & now include NPM. You should be able to run the following command after the installation procedure below.

## Install

```sh
$ git clone https://github.com/HasiniWijerathna/React-Hooks.git
$ cd Hooks
$ npm install
```

## Start & watch
```sh
$ npm start
```

## Simple build for production
```sh
$ npm run build
```