GitXplorerGitXplorer
F

react-ciclo-vitale

public
4 stars
2 forks
1 issues

Commits

List of commits on branch master.
Unverified
db23a51c31efe35fb588f6fc0c49d000adbbb8ef

0.4.0

FFredericHeem committed 7 years ago
Unverified
f25d2ea5c703fb33ae69df288e565efd02aadb0c

add files in package.json

FFredericHeem committed 7 years ago
Unverified
1630d1c69d8f9b68806d72dd045ffbee8184ad76

0.3.0

FFredericHeem committed 7 years ago
Unverified
2ccd533142fc5354548d5e12327f2e42c62b1ef2

compile with babel

FFredericHeem committed 7 years ago
Unverified
f3f3f8d0996343d838fbf078d8af155643c1927d

remove private from package.json

FFredericHeem committed 7 years ago
Unverified
25b2e081a0821c25187d33d7b6fa5aa5e7a9474a

0.2.0

FFredericHeem committed 7 years ago

README

The README file for this repository.

React lifecycle hook method through properties:

  • willMount
  • didMount
  • willUpdate
  • didUpdate
  • willUnmount
import React from "react";
import Lifecycle from "react-ciclo-vitale";

function App(){
    return (
      <div>
        <h2>Lifecycle methods through properties</h2>
        <Lifecycle
          willMount={(props) => console.log("willMount")}
          didMount={(props, divDom) => console.log("didMount")}
          willUpdate={(props, divDom) => console.log("willUpdate")}
          didUpdate={(props, divDom) => console.log("didUpdate")}
          willUnmount={(props, divDom) => console.log("willUnmount")}
        >
          Lifecycle Child component
        </Lifecycle>
      </div>
    );
}