Important Resources:
The tsx
documentation includes the following points about what makes it a better option than ts-node
:
Important Resources:
The tsx
documentation includes the following points about what makes it a better option than ts-node
:
// Full code - https://github.com/jackbkennedy/stitches-spinner | |
import { styled, keyframes } from "../stitches.config"; | |
const spinner = keyframes({ | |
to: { | |
transform: "rotate(360deg)", | |
}, | |
}); | |
export const Spinner = styled("div", { |
import { createContext, ReactNode, useEffect, useState } from 'react' | |
type Theme = 'light' | 'dark'; | |
type ThemeContextProviderProps = { | |
children: ReactNode; | |
} | |
type ThemeContextType = { | |
theme: Theme; |
import PushNotificationIOS from '@react-native-community/push-notification-ios'; | |
import { Platform } from 'react-native'; | |
import PushNotification from 'react-native-push-notification'; | |
class NotificationManager { | |
configure = () => { | |
PushNotification.configure({ | |
onRegister: function (token: any) { | |
console.log('TOKEN:', token); | |
}, |
#!/usr/bin/env node | |
const axios = require('axios'); | |
const FormData = require('form-data'); | |
const fs = require('fs'); | |
const filePath = __dirname + '/../accept-http-post-file/cookie.jpg'; | |
fs.readFile(filePath, (err, imageData) => { | |
if (err) { | |
throw err; | |
} |