This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Hello World</title> | |
<meta name="viewport" content="width=device-width"/> | |
<script src="mortgage-calculator.js"></script> | |
</head> | |
<body> |
This file contains hidden or 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 './styles/index.css' | |
import * as React from 'react' | |
import ReactDOM from 'react-dom' | |
import { CalculatorFrame } from './components/CalculatorFrame' | |
import { TabSelector } from './components/TabSelector' | |
import { MonthlyCostCalculator } from './components/MonthlyCostCalculator' | |
import { MaximumLoanCalculator } from './components/MaximumLoanCalculator' | |
export const renderMortgageCalculator = (element: Element): void => { | |
if (element !== null) { |
This file contains hidden or 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 typescript from 'rollup-plugin-typescript2' | |
import filesize from 'rollup-plugin-filesize' | |
import nodeResolve from 'rollup-plugin-node-resolve' | |
import progress from 'rollup-plugin-progress' | |
import visualizer from 'rollup-plugin-visualizer' | |
import commonjs from 'rollup-plugin-commonjs' | |
import json from '@rollup/plugin-json' | |
import replace from 'rollup-plugin-replace' | |
import postcss from 'rollup-plugin-postcss' | |
import { terser } from 'rollup-plugin-terser' |
This file contains hidden or 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 * as React from 'react' | |
interface MyComponentProps { | |
name: string | |
} | |
export const MyComponent: React.FC<MyComponentProps> = ({ name }) => ( | |
<div className='bg-red-300 p-3 rounded text-white' role='heading' aria-level={1}> | |
My First Component: {name} | |
</div> |
This file contains hidden or 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
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; |
This file contains hidden or 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 '../src/styles/index.css' | |
export const parameters = { | |
actions: { argTypesRegex: '^on[A-Z].*' } | |
} |
This file contains hidden or 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 path = require('path') | |
module.exports = { | |
stories: ['../src/**/*.stories.@(jsx|mdx|tsx)'], | |
addons: ['@storybook/addon-links', '@storybook/addon-essentials'], | |
webpackFinal: async config => { | |
config.module.rules.push({ | |
test: /\.css$/, | |
use: [ | |
{ |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Hello World</title> | |
<script src="https://unpkg.com/react@17/umd/react.development.js"></script> | |
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script> | |
<!-- Don't use this in production: --> | |
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> |
This file contains hidden or 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 pm2 from 'pm2' | |
import devKong from 'dev-kong' | |
const pm2Connect = () => | |
new Promise((resolve, reject) => { | |
pm2.connect(err => { | |
if (err) { | |
return reject(err) | |
} |
This file contains hidden or 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 pm2 from 'pm2' | |
import fs from 'fs' | |
import internalIp from 'internal-ip' | |
import devKong from 'dev-kong' | |
import arg from 'arg' | |
const pm2Connect = () => | |
new Promise((resolve, reject) => { | |
pm2.connect(err => { | |
if (err) { |