react-hodor

The github repository is here.

Install using npm install react-hodor !

Include some stuff !

import React from 'react';
import ReactDOM from 'react-dom';
import Hodor from './react-hodor.jsx';

hodor

The default <Hodor/> element renders the text "hodor".

ReactDOM.render(
    <Hodor/>,
    document.getElementById('hodor'));

will be displayed as:

Hodor

Give it some hodoring:

ReactDOM.render(
    <Hodor hodorhodor="10"/>,
    document.getElementById('hodorhodor'));

and it will

HODOR

Make it hodor speak with:
ReactDOM.render(
    <Hodor hodor="hodor" hodorhodor="100"/>,
    document.getElementById('hodorhodorhodor'));

Aaaaand here it comes !