Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nileshgulia1's full-sized avatar
🎯
Focusing

Nilesh nileshgulia1

🎯
Focusing
View GitHub Profile
# base image
FROM node:12.2.0-alpine
# set working directory
WORKDIR /app
# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
# install and cache app dependencies
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
function tick(){
let element=(
<div>
<h1>hello world</h1>
<h2>it is {new Date().toLocaleTimeString()}</h2>
</div>
);
ReactDOM.render(element, document.getElementById('sample'));