Skip to content

Instantly share code, notes, and snippets.

@anil-sidhu
Created October 22, 2020 15:56
Show Gist options
  • Save anil-sidhu/f53b806c4ab7c27300d3025022723692 to your computer and use it in GitHub Desktop.
Save anil-sidhu/f53b806c4ab7c27300d3025022723692 to your computer and use it in GitHub Desktop.
React js code without NPM
<html>
<head>
<title>React App</title>
<script src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
<body>
<div id="mydiv">
</div>
<script type="text/babel">
function Test()
{
const bla=()=>{alert("Hello React")}
return <button onClick={bla}>Click Me</button>
}
class Hello extends React.Component{
render()
{
return <div>Hello React code <Test /></div>
}
}
ReactDOM.render(<Hello />,document.getElementById('mydiv'))
</script>
</body>
</html>
@U2-coder
Copy link

superbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbthank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu

@U2-coder
Copy link

sir thank you, i want to become famous by making a private search engine

@deepakmehta01
Copy link

Thank You !!!!

@lokii171019
Copy link

tq

@syedasadkhan
Copy link

thanks

@atish-tech
Copy link

Thanku Sir 🤍

@SamadhanAgarkar
Copy link

thank you brother! Its amazing nd learned new thing < - >....

@parvez012
Copy link

Love You Sir

@chandrashekharjoshi302
Copy link

thanks, bro It is really helpful God bless you

@AshokBhaargaw
Copy link

thank you bhai

@frontdev786
Copy link

Thanks

@Satyam-jsw
Copy link

thanks youu!!

@iamyogeshmore
Copy link

t is really helpful, thank you bhai !!!!

@mahadeogudse
Copy link

Thank you sir

@rv446382
Copy link

Thank you sir

@fadigit6999
Copy link

Great work !

@kashif-ali-developer
Copy link

thanks sir

@Its-Praduman09
Copy link

Thank You Sir

@alymehroz512
Copy link

Aoa great learning, thanks sir.

@ranjan-kumar-01
Copy link

I learnt javascript and from today I started learning react from your tutorials.

@nomiuttra
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment