Skip to content

Instantly share code, notes, and snippets.

View saurabhnemade's full-sized avatar
🧑‍🚀
Building Awesome Software Ideas.

Saurabh Nemade saurabhnemade

🧑‍🚀
Building Awesome Software Ideas.
View GitHub Profile
export const formatDate = (date) => {
var d = new Date(date),
month = '' + (d.getMonth() + 1),
day = '' + d.getDate(),
year = d.getFullYear();
if (month.length < 2)
month = '0' + month;
if (day.length < 2)
day = '0' + day;
{
"name": "product-one",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
import React from 'react';
import logo from './logo.svg';
import './App.css';
import { Button } from 'ui-components';
import { formatDate } from 'common-utils';
function App() {
return (
<div className="App">
<div>
{
"packages": [
"packages/*"
],
"version": "0.0.0",
"npmClient": "yarn",
"useWorkspaces": true
}
"publishConfig": {
"registry": REGISTRY_URL_HERE
}