Skip to content

Instantly share code, notes, and snippets.

View arjunkdot's full-sized avatar
🧱
brick after brick

Arjun K. arjunkdot

🧱
brick after brick
View GitHub Profile
@arjunkdot
arjunkdot / nextjs-file-upload-api.js
Created November 4, 2021 13:23 — forked from agmm/nextjs-file-upload-api.js
Simple Nextjs File Upload — Backend API
// Backend
import formidable from 'formidable';
export const config = {
api: {
bodyParser: false,
},
};
export default async (req, res) => {
@arjunkdot
arjunkdot / Component.jsx
Created February 22, 2021 03:12 — forked from krambertech/Component.jsx
ReactJS: Input fire onChange when user stopped typing (or pressed Enter key)
import React, { Component } from 'react';
import TextField from 'components/base/TextField';
const WAIT_INTERVAL = 1000;
const ENTER_KEY = 13;
export default class TextSearch extends Component {
constructor(props) {
super();