Modal Bootstrap with ReactJS
How do I make an modal bootstrap with reactjs?
Modal Bootstrap with ReactJS. What is a modal bootstrap with reactjs? How do you make a modal bootstrap with reactjs? This script and codes were developed by Dang Van Thanh on 13 September 2022, Tuesday.
Modal Bootstrap with ReactJS - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Modal Bootstrap with ReactJS</title> <link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'>
</head>
<body> <div class="well"> <div class="container"> <div class="row"> <div class="col-md-12"> <div id="modal"></div> </div> </div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/react/0.13.0/react.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Modal Bootstrap with ReactJS - Script Codes JS Codes
"use strict";
var ModalHeader = React.createClass({ displayName: "ModalHeader", render: function render() { return React.createElement( "div", { className: "modal-header" }, React.createElement( "button", { type: "button", className: "close", "data-dismiss": "modal", "aria-label": "Close" }, React.createElement( "span", { "aria-hidden": "true" }, "×" ) ), React.createElement( "h4", { "class": "modal-title" }, this.props.title ) ); }
});
var ModalBody = React.createClass({ displayName: "ModalBody", render: function render() { return React.createElement( "div", { className: "modal-body" }, this.props.content ); }
});
var ModalFooter = React.createClass({ displayName: "ModalFooter", render: function render() { return React.createElement( "div", { className: "modal-footer" }, React.createElement( "button", { type: "button", className: "btn btn-default", "data-dismiss": "modal" }, "Close" ), React.createElement( "button", { type: "button", className: "btn btn-primary" }, "Submit" ) ); }
});
var Modal = React.createClass({ displayName: "Modal", render: function render() { var title = 'Modal title'; var content = "\n Text in a modal\n "; return React.createElement( "div", { className: "modal fade" }, React.createElement( "div", { className: "modal-dialog" }, React.createElement( "div", { className: "modal-content" }, React.createElement(ModalHeader, { title: title }), React.createElement(ModalBody, { content: content }), React.createElement(ModalFooter, null) ) ) ); }
});
var Button = React.createClass({ displayName: "Button", _showModal: function _showModal() { $(this.refs.modal.getDOMNode()).modal(); }, render: function render() { return React.createElement( "div", null, React.createElement( "button", { className: "btn btn-primary", onClick: this._showModal }, "Show Modal" ), React.createElement(Modal, { ref: "modal" }) ); }
});
React.render(React.createElement(Button, null), document.getElementById('modal'));
Developer | Dang Van Thanh |
Username | dangvanthanh |
Uploaded | September 13, 2022 |
Rating | 3 |
Size | 2,716 Kb |
Views | 20,240 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Simple Carousel Pure CSS | 4,080 Kb |
Browser Pure CSS3 | 2,439 Kb |
Skew in CSS3 Transform | 2,063 Kb |
Typography with Text | 2,587 Kb |
Translate in CSS3 2D Transform | 2,070 Kb |
Pure Car Animation | 2,501 Kb |
CSS Triangles in Sass | 2,295 Kb |
CSS3 Multi-Column Module 1 | 2,212 Kb |
Checkboxes jQuery Plugin | 2,405 Kb |
Navigation Responsive with Transition | 2,871 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Two column of responsive height | Fixie | 2,908 Kb |
Cars going | Netoguimaraes | 1,699 Kb |
Rrremark.com Overlay Highlighter | Derickruiz | 4,438 Kb |
Experiment - SCSS SVG Background Image with Variables | See8ch | 3,270 Kb |
Matrix | Stathisnikolaidis | 1,922 Kb |
A Pen by Matt Popovich | Mpopv | 3,349 Kb |
SCSS Unit Conversion | Jakob-e | 8,210 Kb |
Hoi hoi | JohnTheCat | 7,248 Kb |
Twitch Live Channels | Inkblotty | 4,956 Kb |
Voting App - register | MatheusLima92 | 1,948 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!