Professional Documents
Culture Documents
https://www.w3schools.com/nodejs/nodejs_filesystem.asp
https://www.geeksforgeeks.org/node-js-file-system/
https://www.tutorialsteacher.com/nodejs/nodejs-eventemitter
5. What is Express.JS? Why do we need Express.JS? What are its Core Features?
https://www.besanttechnologies.com/what-is-expressjs
{
"firstName": "Bidhan",
"lastName": "Chatterjee",
"age": 40,
"email":"bidhan@example.com"
}
8 HTML Templating ? What are the various Template Engines supported by Expres.js.
Write a Server program using Handlebars that renders a dynamic list of people every time a
user visits your website..
https://blog.logrocket.com/top-express-js-template-engines-for-dynamic-html-pages/
}
Class Components: You can also use ES6 class to define a component. The above
function component can be written as:
class Greeting extends React.Component {
render() {
return <h1>{`Hello, ${this.props.message}`}</h1>
}
i. }
A: Props are readonly and passed in from parent to child component; state is an
internal object for a particular react component and can change, as it determines the
state of the component. It is not visible to other components.
this.state = {
message: 'Welcome to React world'
}
}
render() {
return (
<div>
<h1>{this.state.message}</h1>
</div>
)
}
}
State is similar to props, but it is private and fully controlled by the
component. i.e, It is not accessible to any other component til the owner
component decides to pass it.
22 JSX
In the example below text inside <h1> tag is returned as JavaScript function to
the render function.
render() {
return(
<div>
<h1>{'Welcome to React world!'}</h1>
</div>
)
}
}
23
The virtual DOM (VDOM) is an in-memory representation of Real DOM. The
representation of a UI is kept in memory and synced with the “real” DOM. It’s a step
that happens between the render function being called and the displaying of
elements on the screen. This entire process is called reconciliation.
Reference
https://github.com/Devinterview-io/react-interview-questions
https://github.com/sudheerj/reactjs-interview-questions#what-is-state-in-react