This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class App extends React.Component { | |
state = { clicked: false, initialized: false }; | |
componentDidMount() { | |
this.setState({ initialized: true }); | |
} | |
setClicked = () => { | |
this.setState({ clicked: true }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function App() { | |
const [firstName, setFirstName] = useState(""); | |
const [middleName, setMiddleName] = useState(""); | |
const [lastName, setLastName] = useState(""); | |
return ( | |
<div className="App"> | |
<PersonalInformation | |
firstName={firstName} | |
middleName={middleName} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function App() { | |
const [firstName, setFirstName] = useState(""); | |
const [middleName, setMiddleName] = useState(""); | |
const [lastName, setLastName] = useState(""); | |
return ( | |
<div className="App"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function PersonalInformation({ | |
firstName, | |
middleName, | |
lastName, | |
setFirstName, | |
setMiddleName, | |
setLastName | |
}) { | |
return ( | |
<div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class ContainerComponent extends Component { | |
state = { firstName: "", lastName: "", address: "", data: [] }; | |
componentDidMount() { | |
axios.get("/url/blablabla").then(res => this.setState({ data: res.data })); | |
} | |
onChangeEvent = () => { | |
// Complex logic here... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MEDIA QUERY MANAGER | |
/* | |
0 - 600px: Phone | |
600 - 900px: Tablet portrait | |
900 - 1200px: Tablet landscape | |
[1200 - 1800] is where our normal styles apply | |
1800px + : Big desktop | |
$breakpoint arguement choices: | |
- phone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "./SchemaTablesList.css"; | |
import React, { Component } from "react"; | |
import { bindActionCreators } from "redux"; | |
import { connect } from "react-redux"; | |
import _ from "lodash"; | |
import { withRouter } from "react-router-dom"; | |
/* ACTIONS */ | |
import { initializeTables, deleteTablesInSchema } from "../Actions/index"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use iframer; | |
update sale s set FullyPaid=1 | |
where YEAR(s.Created) between 2012 and 2018 and s.FramerID = 'bea8ac99-04dd-48da-8db8-ba572bf8ffe2'; | |
select * from sale s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component, Fragment } from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
class App extends Component { | |
componentDidMount() { | |
} |