Siema - React basic example

Developer
Size
3,124 Kb
Views
58,696

How do I make an siema - react basic example?

What is a siema - react basic example? How do you make a siema - react basic example? This script and codes were developed by Pawel Grzybek on 23 June 2022, Thursday.

Siema - React basic example Previews

Siema - React basic example - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Siema - React basic example</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="root"></div> <script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react-dom.min.js'></script>
<script src='https://pawelgrzybek.com/siema/assets/siema.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Siema - React basic example - Script Codes CSS Codes

body { width: 100%; max-width: 30rem; margin: 0 auto;
}
img { width: 100%;
}
.siema { margin: 1rem 0;
}

Siema - React basic example - Script Codes JS Codes

"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var App = function (_React$Component) { _inherits(App, _React$Component); function App() { var _temp, _this, _ret; _classCallCheck(this, App); for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.prev = function () { _this.siema.prev(); }, _this.next = function () { _this.siema.next(); }, _temp), _possibleConstructorReturn(_this, _ret); } App.prototype.render = function render() { return React.createElement( "div", null, React.createElement( "div", { className: "siema" }, React.createElement( "div", null, React.createElement("img", { src: "https://pawelgrzybek.com/siema/assets/siema--pink.svg", alt: "Siema image" }) ), React.createElement( "div", null, React.createElement("img", { src: "https://pawelgrzybek.com/siema/assets/siema--yellow.svg", alt: "Siema image" }) ), React.createElement( "div", null, React.createElement("img", { src: "https://pawelgrzybek.com/siema/assets/siema--pink.svg", alt: "Siema image" }) ), React.createElement( "div", null, React.createElement("img", { src: "https://pawelgrzybek.com/siema/assets/siema--yellow.svg", alt: "Siema image" }) ) ), React.createElement( "button", { onClick: this.prev }, "Prev" ), React.createElement( "button", { onClick: this.next }, "Next" ) ); }; App.prototype.componentDidMount = function componentDidMount() { this.siema = new Siema(); }; return App;
}(React.Component);
ReactDOM.render(React.createElement(App, null), document.getElementById('root'));
Siema - React basic example - Script Codes
Siema - React basic example - Script Codes
Home Page Home
Developer Pawel Grzybek
Username pawelgrzybek
Uploaded June 23, 2022
Rating 3
Size 3,124 Kb
Views 58,696
Do you need developer help for Siema - React basic example?

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!

Pawel Grzybek (pawelgrzybek) Script Codes
Create amazing captions with AI!

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!