added vscode extensions
This commit is contained in:
parent
7cde0829be
commit
26e2a50441
316 changed files with 37301 additions and 0 deletions
25
.vscode/extensions/eckertalex.borealis-1.0.2/demo/react.jsx
vendored
Normal file
25
.vscode/extensions/eckertalex.borealis-1.0.2/demo/react.jsx
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// src/components/Hello.tsx
|
||||
|
||||
import * as React from "react";
|
||||
|
||||
function Hello({ name, enthusiasmLevel }) {
|
||||
if (enthusiasmLevel <= 0) {
|
||||
throw new Error("You could be a little more enthusiastic. :D");
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="hello">
|
||||
<div className="greeting">
|
||||
Hello {name + getExclamationMarks(enthusiasmLevel)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default Hello;
|
||||
|
||||
// helpers
|
||||
|
||||
function getExclamationMarks(numChars) {
|
||||
return Array(numChars + 1).join("!");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue