You are on page 1of 5
Join our channel if you haven't joined yet https://t.me/fresco_milestone ( @fresco_milestone ) Wings1 T1 Mini-project - ReactlS Application Open Project folder (you can find in desktop) in VS Code application "pe below code */Desktop/Projectswings..Resesst/App "te: import React, { Component } from "react"; class App extends Component { state = { newTitle: "", newDescription newTopic: "", addedagenda: [ i title: "Angular", description: "Sone description about the angular”, topics: ["Introduction", "typescript", "Why Angular?", “Understanding Versions", "Fundamentals" } b t title: "vue" description: "Sone description about the vue", topics: ["Introduction", "Javascript", "Why Vue2", "Vue Bindings", "Conponent Interaction" ] y L topicsarr: (1, showAgendaBlock: false 3 changeFun = e => { const value = e.target.values const name = e.target.name; this.setstate({ [name]: value }) } topicFun = () => { ‘this. state. topicsArr.push(this.state.newTopic) this.setState({ newTopic: "" }); 3 agendaFun = () => { var agenda = { Join our channel if you haven't joined yet https://t.me/fresco_milestone ( @fresco_milestone ) title: this.state.newTitle, description: this.state.newDescription, topics: this.state.topicsarr t this.setState({ newTitle: "" }) this.setState({ newDescription: this.setState({ newTopics: ‘this.setState({ topicsarr: ‘this. state. AddedAgenda. push(agenda) 3 formchec = (e) => { e.preventdefault() + checkAgendaFun = () => { ‘this. state.showAgendaBlock === false ? this.setState({ showAgendaBlock: true }) : this.setState({ showAgendaBlock: false }) 3 render() { return (
Agenda Manager {Ithis.state. showAgendaBlock &&
Join our channel if you haven't joined yet https://t.me/fresco_milestone ( @fresco_milestone } {this.state.new0escription.trim(). length © ? “Description is required” : “"}
+
+ (this. state. showAgendaBlock &&
3 d export default App; command in the terminal and Install project dependencies by using to run the application by using To test the application

You might also like