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 main.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 { createApp } from "vue"; | |
import App from "./App.vue"; | |
import store from "./store"; | |
createApp(App).use(store).mount("#app"); |
View store.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 { createStore } from "vuex"; | |
export default createStore({ | |
state | |
mutations | |
actions | |
getters | |
}); |
View store.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 { reactive } from "vue"; | |
export const store = { | |
state: reactive({ | |
numbers: [1, 2, 3] | |
}), | |
addNumber(newNumber) { | |
this.state.numbers.push(newNumber); | |
} | |
}; |
View NumberDisplay.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
<template> | |
<div> | |
<h2>{{ numbers }}</h2> | |
</div> | |
</template> | |
<script> | |
import { emitter } from "../event-bus.js"; | |
export default { | |
name: "NumberDisplay", |
NewerOlder