0.10.4 • Published 5 years ago
@braces/react-confirm v0.10.4
React Confirm
This package is deprecate, Please check @braces/reconfirm
Install
1 Install react confirm as dependency
# Using yarn package manager
$ yarn add @braces/react-confirm
# Using npm package manager
$ npm install --save @braces/react-confirm
2 Import React confirm module
// ES6
import Confirm from "@braces/react-confirm"
// ES5
var Confirm = require("@braces/react-confirm");
Example
import React from "react";
import confirm from "@braces/react-confirm";
const Component = (props) => {
return (
<div>
<button onClick={props.confirm}>Confirm</button>
{props.confirmed ? "Is confirmed" : "Is not confirmed"}
</div>
);
};
const ConfirmDialog= (props) => {
return (
<div>
Confirm Message...
<button onClick={props.doConfirm}>Confirm</button>
</div>
);
}
export default confirm(ConfirmDialog)(HomePage)
Contributing!
All contributions are super welcome!
License
React Confirm is MIT licensed.
0.10.4
5 years ago
0.10.3
5 years ago
0.10.2
5 years ago
0.10.1
6 years ago
0.10.0
6 years ago
0.9.0
6 years ago
0.8.4
6 years ago
0.8.3
6 years ago
0.8.2
6 years ago
0.8.1
6 years ago
0.8.0
6 years ago
0.7.0
6 years ago
0.6.0
6 years ago
0.5.0
6 years ago
0.4.0
6 years ago
0.3.0
6 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.0
6 years ago