Skip to content

Who's way of using is correct? FCscripters? Yours? Both? #8

@Joshua-Ronan-Phillips

Description

@Joshua-Ronan-Phillips

Your way of how to use:

var React         = require('react');
var ReactDOM      = require('react-dom');
var PointerTools  = require('react-mouse-pointer-tools');
var rootElement   = document.body.getElementById("wrapper");

ReactDOM.render(
  <PointerTools color="pink" showRulers={true} />,
  rootElement
);

FCScripters way:

After installation add the following to your main js file i.e. app.js

var Countdown = require('react-the-final-countdown');
And add the Countdown component where you are returning your HTML:

<Countdown min = {3} msg ="Close the bloody fridge" afterUnmount = {this.afterUnmount}/>

I can't work out which way is correct or if they both are?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions