report for development
hyunmoahn / notes Goto Github PK
View Code? Open in Web Editor NEWnotes for development
notes for development
const meta = document.createElement('meta')
meta.name = 'referrer'
meta.content = 'no-referrer'
document.getElementsByTagName('head')[0].appendChild(meta)
// share logic
meta.remove()
When double tap <button>
,<img>
tag, browser is magnified.
If you want to block the magnification, add touch-action: manipulation;
at CSS.
button {
touch-action: manipulation;
}
When using react-router, occur Maximum update depth exceeded
error. So, it doesn't render anything.
const { location } = this.props
<Switch location={location}>
<Route path="/route/red" component={Red} />
<Route path="/route/blue" component={Blue} />
<Route path="/route/green" component={Green} />
<Redirect to='/route/red' from="/route" /> // <-- this is point
</Switch>
When I access /route
path, Above error is occurred.
const { location } = this.props
<Switch location={location}>
<Route path="/route/red" component={Red} />
<Route path="/route/blue" component={Blue} />
<Route path="/route/green" component={Green} />
<Redirect to={{...location, pathname: '/route/red'}} from="/route" /> // <-- this is point
</Switch>
I change type of to
props of Redirect
from string to object.
Error is disappear. But I don't know why error is disappear.
Need to find that Why does an infinite rendering occur when the Switch
has custom location of props and the Redirect
has string of to on props.
When you have element that doesn't have height value like height: auto
or height: 100% and parent doesn't have height specifically
, It doesn't occur transition animation of css using height
.
max-height
overlytransition: max-height .2s
max-height: 0
and max-height: 700px
(example)** If max-height part of high is very high, should occur delay from max to min. Ref
https://stackoverflow.com/questions/3508605/how-can-i-transition-height-0-to-height-auto-using-css
Target MacOS
brew install scrcpy
brew cask install android-platform-tools
// connect mobile device to your macOS
adb devices // check connection
scrcpy
adb tcpip 5555
adb connect {mobile device IP}
adb devices // check connection
scrcpy -s {mobile device IP}
const popup = window.open('', '_blank');
// async logic
popup.location.href = 'https://example.com'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.