View Form.js
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, { useState } from 'react'; | |
export function Form() { | |
const [formData, setFormData] = useState({ | |
username: '', | |
password: '', | |
errors: [], | |
loading: false, | |
}); |
View index.js
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 from "react"; | |
import ReactDOM from "react-dom/client"; | |
import { Skeleton } from "@progress/kendo-react-indicators"; | |
import { | |
Avatar, | |
Card, | |
CardTitle, | |
CardSubtitle, | |
CardHeader, | |
CardImage, |
View index.js
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 from "react"; | |
import ReactDOM from "react-dom/client"; | |
import { Skeleton } from "@progress/kendo-react-indicators"; | |
import { | |
Avatar, | |
Card, | |
CardTitle, | |
CardSubtitle, | |
CardHeader, | |
CardImage, |
View index.js
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 from "react"; | |
import { useTable, useSortBy, useRowSelect } from "react-table"; | |
function App() { | |
const columns = React.useMemo( | |
() => [ | |
{ | |
Header: "Name", | |
accessor: "name" | |
}, |
View index.js
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 from "react"; | |
import ReactDOM from "react-dom/client"; | |
import { | |
Map, | |
MapLayers, | |
MapTileLayer, | |
MapMarkerLayer, | |
MapBubbleLayer, | |
} from "@progress/kendo-react-map"; | |
import "./index.scss"; |
View listingBookings.ts
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
const listingBookings = { | |
total: 4, | |
result: [ | |
{ | |
id: "5daa530eefc64b001767247c", | |
tenant: { | |
id: "117422637055829818290", | |
name: "User X", | |
avatar: | |
"https://lh3.googleusercontent.com/a-/AAuE7mBL9NpzsFA6mGSC8xIIJfeK4oTeOJpYvL-gAyaB=s100", |
View listings.ts
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
const listings: Listing[] = [ | |
{ | |
_id: new ObjectId("5d378db94e84753160e08b30"), | |
title: "Clean and fully furnished apartment. 5 min away from CN Tower", | |
description: | |
"2 bed, 2 bathroom cozy apartment in the heart of downtown Toronto and only 5 min away from the CN Tower, Scotiabank Arena, and Rogers Center.", | |
image: | |
"https://res.cloudinary.com/tiny-house/image/upload/v1560641352/mock/Toronto/toronto-listing-1_exv0tf.jpg", | |
host: "5d378db94e84753160e08b57", | |
type: ListingType.Apartment, |
View users.ts
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
const users: User[] = [ | |
{ | |
_id: "5d378db94e84753160e08b55", | |
token: "token_************", | |
name: "James J.", | |
avatar: | |
"https://res.cloudinary.com/tiny-house/image/upload/w_1000,ar_1:1,c_fill,g_auto/v1560648533/mock/users/user-profile-1_mawp12.jpg", | |
contact: "james@tinyhouse.com", | |
walletId: "acct_************", | |
income: 723796, |
View Parent+Child_Components.vue
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
<!-- Parent Component --> | |
<template> | |
<div> | |
<ChildComponent :numbers="numbers" /> | |
</div> | |
</template> | |
<script> | |
import ChildComponent from './child-component.js'; | |
export default { | |
name: 'ParentComponent', |
NewerOlder