Egghead tute

Developer
Size
3,188 Kb
Views
8,096

How do I make an egghead tute?

What is a egghead tute? How do you make a egghead tute? This script and codes were developed by Dylan on 07 January 2023, Saturday.

Egghead tute Previews

Egghead tute - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Egghead tute</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="app"></div> <script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Egghead tute - Script Codes CSS Codes

.wrapper { margin: auto; text-align: left; width: 350px;
}
li { list-style-type: none;
}

Egghead tute - 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() { _classCallCheck(this, App); var _this = _possibleConstructorReturn(this, _React$Component.call(this)); _this.state = { todos: [{ id: 1, name: 'Learn', isComplete: false }, { id: 2, name: 'JSX', isComplete: false }, { id: 3, name: 'Now', isComplete: false }], visibilityFilter: [{ index: 1, name: 'All' }, { index: 2, name: 'Not Done' }, { index: 3, name: 'Complete' }] }; return _this; } App.prototype.render = function render() { var todos = this.state.todos; return React.createElement( 'div', { className: 'wrapper' }, React.createElement( 'div', { className: 'heading' }, React.createElement( 'h2', null, 'React todos' ) ), React.createElement( 'div', { className: 'todoInput' }, React.createElement( 'form', null, React.createElement('input', { type: 'text' }) ) ), React.createElement( 'div', { className: 'listItems' }, React.createElement( 'ul', null, todos.map(function (todo) { return React.createElement( 'li', { key: todo.id }, React.createElement('input', { type: 'checkbox', defaultChecked: todo.isComplete }), ' ', todo.name ); }) ) ), React.createElement( 'div', { className: 'filterList' }, React.createElement( 'span', null, this.state.visibilityFilter.map(function (filterChoice) { return React.createElement( 'a', { href: '#', key: filterChoice.id, style: { marginRight: '10px' } }, filterChoice.name ); }) ) ) ); }; return App;
}(React.Component);
ReactDOM.render(React.createElement(App, null), document.querySelector('#app'));
Egghead tute - Script Codes
Egghead tute - Script Codes
Home Page Home
Developer Dylan
Username thommyboy02
Uploaded January 07, 2023
Rating 3
Size 3,188 Kb
Views 8,096
Do you need developer help for Egghead tute?

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!

Dylan (thommyboy02) 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!