- Check where the app is installed
$ which app_name
- Lift the quarantine for the app name binary Now you need to tell Mac OS to trust this binary by lifting the quarantine. Do this by the following terminal command
import React, {useState} from 'react' | |
import RouteContext, {EMPTY_ROUTE} from './route-context' | |
const App = props => { | |
const [route, setRoute] = useState(EMPTY_ROUTE) | |
useEffect(() => { | |
// Logic to update the setRoute() based on the current route | |
// route object has params and query keys, update them accordingly | |
// or pass setRoute setter as vlaue to th Provider |
Create an application https://discord.com/developers/applications/
Once an app created, go to Bot
section and add one bot with a type bot
Once Bot created copy the Token
which is a secret and please don't share it with anyone, needed to connect to the
Bot using API
Authorize the bot to be attached to your discord server, make sure you have created a Server in https://discord.com
import React, {useEffect} from 'react' | |
import {useSelector, useDispatch} from 'react-redux' | |
import {getAmount, changeAmount, changeCurrencyCode, getCurrencyCode} from './store' | |
const ExchangeRate = () => { | |
const amount = useSelector(getAmount) // or write inline selector, state => state.rates.amount | |
const code = useSelector(getCurrencyCode) | |
const dispatch = useDispatch() | |
const onAmountChange = e => dispatch(changeAmount(e.target.value)) // or write inline dispatch, {type: CHANGE_AMOUNT, payload: e.target.value} |
$ git commit --amend --author="[email protected]"
const _ = require('lodash') | |
const condidateProfile = { | |
experience: [ | |
{ | |
company: 'ABC', | |
startDate: 2020, | |
present: true | |
}, | |
// { |
#!/usr/bin/env node | |
function helloThere(name) { | |
console.log('Hi,', name) | |
} | |
helloThere('Punith K') |
/* Padding to the hover effect without adding padding to the original element */ | |
':hover': { | |
background: gray, | |
cursor: 'pointer', | |
width: 240px, /* Can be dynamic */ | |
padding: '0 10px', | |
margin-left: -10px, | |
}, |
import React from "react" | |
import containerStyles from "./container.module.css" | |
const Container = ({ children }) => { | |
return <div className={containerStyles.container}>{children}</div> | |
} | |
export default Container |