Skip to content

Instantly share code, notes, and snippets.

View rajgadade's full-sized avatar
🎯
Focusing

Raj Gadade rajgadade

🎯
Focusing
View GitHub Profile
@rajgadade
rajgadade / todolist.jsx
Created August 22, 2019 10:15
reactjs function component with props demo
const todos = [];
todos.push("Buy a big doll");
todos.push("Do yoga");
todos.push("Review component article");
function TodoList(props) {
return (
<div className="todo-lists">
<h1>TodoList</h1>
<ul>
import React from 'react';
class MicroFrontend extends React.Component {
componentDidMount() {
const { name, host, document } = this.props;
const scriptId = `micro-frontend-script-${name}`;
if (document.getElementById(scriptId)) {
this.renderMicroFrontend();
return;