This is Our Blogs Page

Context Api

Context Api makes the state variable global of react applicatons so we can use the variable from anywhere of the app. In a react app, data is passed top-down (from parent to child component) via props through every level of the tree. But, this usage becomes complicated in large applications . Context Api provides a way to share values like these between components without havinng to pass a prop through every level of the tree. It makes the variable global so the value can be accessed from any component of the application

Semantic Tag

Semantic tags accurately specifies its meaning and purpose to both the developer and browser. When we use div tag for writing nav,header,footer or other elements we don't tell specifically about what this element do to the browser.So, 'div' is non-semantic tag. Instead , if we use "nav,header,footer" etc, then we clearly specify what this element is about.So, these are semantic tags.