diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-06-20 20:00:35 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-06-20 20:00:35 +0530 |
| commit | 59c2d3502259b338c36991ced8dc25d8dc9713b1 (patch) | |
| tree | 7d1d87b54f2da5a269bb55d99d01f5d7b0dca1f0 /react/01-helloworld-js/js/helloworld.js | |
| parent | 41b068b6d48f9d82babd1cfce3520ad0b28be861 (diff) | |
Added first react sample project
Diffstat (limited to 'react/01-helloworld-js/js/helloworld.js')
| -rw-r--r-- | react/01-helloworld-js/js/helloworld.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/react/01-helloworld-js/js/helloworld.js b/react/01-helloworld-js/js/helloworld.js new file mode 100644 index 0000000..313042c --- /dev/null +++ b/react/01-helloworld-js/js/helloworld.js @@ -0,0 +1,6 @@ +'use strict'; + +ReactDOM.render( + React.createElement('h1', {}, 'Hello World!'), + document.getElementById('root') +);
\ No newline at end of file |
