
Technology
React
React is a JavaScript library provided and maintained by Facebook. React gives developers a lot of freedom and works with a component-based approach. React has spread rapidly and is mainly used in PWA (Progressive Web Applications) and SPA (Single Page Applications).
Code Example:
import Head from "next/head";
import React, {Component} from 'react'
class MetaData extends Component {
constructor(props, context) {
super(props, context);
this.props = props;
this.metaTitle = props.metaTitle;
this.metaDescription = props.children;
this.metaKeywords = props.metaKeywords;
}
render() {
return (
<Head>
<title>ilenvo media | {this.metaTitle}</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta charSet="utf-8"/>
<meta name="description" content={this.metaDescription}/>
<meta name="keywords" content={this.metaKeywords}/>
</Head>
)
}
}
export default MetaData;