content added to day 1

pull/1/head
Asabeneh 5 years ago
parent d5182e0c11
commit eb96083488

@ -533,7 +533,7 @@ Congratulations! You have completed the setup you need to get started with React
## 1. Variables ## 1. Variables
We use *var*, *let* and *const* to declare a variable. The *var* is functions scope, however *let* and *const* are block scope. In this challenge we use ES6 and above features of JavaScript. Avoid using *var*. We use _var_, _let_ and _const_ to declare a variable. The _var_ is functions scope, however _let_ and _const_ are block scope. In this challenge we use ES6 and above features of JavaScript. Avoid using _var_.
```js ```js
let firstName = 'Asabeneh' let firstName = 'Asabeneh'
@ -4741,11 +4741,14 @@ So do not directly manipulate the DOM if you are using react. The only place we
// const root = document.querySelector('.root') // const root = document.querySelector('.root')
// const root = document.getElementById('root') // const root = document.getElementById('root')
const root = document.querySelector('#root') const root = document.querySelector('#root')
root.innerHTML = <h1>Welcome to 30 Days Of React </h1>
</script> </script>
</body> </body>
</html> </html>
``` ```
Check out there result on [codepen](https://codepen.io/Asabeneh/full/vYGqQxP)
🌕 You are amazing! You have just completed day 1 challenge and you are on your way to greatness. Now you are a JavaScript Ninja and ready to dive in to React. 🌕 You are amazing! You have just completed day 1 challenge and you are on your way to greatness. Now you are a JavaScript Ninja and ready to dive in to React.
🎉 CONGRATULATIONS ! 🎉 🎉 CONGRATULATIONS ! 🎉

Loading…
Cancel
Save