Internship Report SCONTI Dishath22
Internship Report SCONTI Dishath22
Internship Report SCONTI Dishath22
STUDENT NAME
DISHANTH PATEL
[U01BH21S0052]
GUIDE NAME
Mr. Pavithrakumar L
Asst.Prof Dept of BCA
JAYALAKSHMIPURAM
MYSORE – 570012
KARNATAKA
S. No. CONTENTS PAGE No.
2
ABOUT THE COMPANY (SCONTINENT TECHNOLOGIES)
3
SERVICES AND PARTNERS
PARTNERS
4
OBJECTIVE
5
INTRODUCTION TO FULL STACK WEB DEVELOPMENT
The MERN stack is a popular choice for building modern web applications. It's a
full-stack development approach, meaning it equips you with the tools to handle
both the front-end (user interface) and back-end (server-side logic) of your web
app. Here's a breakdown of the technologies that make up MERN:
6
REACT
7
React installation or to create application, we require to learn npm and its
commands.
What is NPM?
NPM stands for Node Package Manager npm is the package manager for the Node
JavaScript platform. It puts modules in place so that node can find them, and
manages dependency conflicts intelligently. Most commonly, it is used to publish,
discover, install, and develop node programs
Before using NPM commands we have to install, node.
To get Download, nodejs from official website: https://nodejs.org/en/download/
Nodejs is supported all major OS, like Windows, Mac or Linux. nede
Once nodejs is installed in you OS. Verify the version of node js and npm.
> node -V
> npm –v
To create an React Application we use npm command
>npm install -g
> npx create-react-app <project-name>
> create-react-app <my-directory>
Once it has been created, we can start our application.
> npm start
There are two types of components in React: functional components and class
components.
Functional Components:
Functional components are defined as JavaScript functions. They receive props
(properties) as input and return JSX (JavaScript XML) to describe the UI. Here's
an example of a functional component:
8
return <div>Hello, {props.name}!</div>;
}
export default MyComponent;
Class Components:
Class components are defined as JavaScript classes that extend the
React.Component class. They can have state, lifecycle methods, and more
complex logic. Here's an example of a class component:
import React from 'react';
class MyComponent extends React.Component {
render() {
return <div>Hello, {this.props.name}!</div>;
}
}
export default MyComponent;
9
static getDerivedStateFromProps(): Similar to the mounting phase, this method is
called just before rendering when new props are received. It allows updating the
state based on the new props.
shouldComponentUpdate(): This method determines whether the component
should re-render or not. It is used to optimize performance by preventing
unnecessary re-renders.
render(): Re-renders the component with updated state and props.
getSnapshotBeforeUpdate(): This method is called right before the changes from
the component are committed to the DOM. It allows capturing information from
the DOM before it updates.
componentDidUpdate(): This method is invoked after the component has been
updated and re-rendered. It is commonly used to perform post-update operations
like updating the DOM or making additional API calls.
Unmounting Phase:
In React, both state and props are used to manage and pass data in components,
but they serve different purposes.
Props (Properties):
Props are read-only data passed from a parent component to a child component.
They are used to pass data and configuration from a parent component down to its
child components.
Props are defined by the parent component and accessed by the child component
as function arguments.
10
Props are immutable, meaning they cannot be modified by the child component.
To access props in a functional component, you can simply use the props
parameter, and in a class component, you can access them using this.props.
Example of passing props from a parent component to a child component:
// ParentComponent.js
import React from 'react';
import ChildComponent from './ChildComponent';
function ParentComponent() {
const name = 'John Doe';
return <ChildComponent name={name} />;
}
export default ParentComponent;
// ChildComponent.js
import React from 'react';
function ChildComponent(props) {
return <div>Hello, {props.name}!</div>;
}
export default ChildComponent;
In the above example, the name prop is passed from the ParentComponent to the
ChildComponent. The child component then receives and renders the value of the
prop.
State:
State represents the internal data of a component that can change over time.
State is managed within a component and can be modified using the setState()
method provided by React.
State is typically used to handle user interactions, manage component-specific
data, and trigger re-rendering when the state is updated.
11
State is specific to class components, as functional components can use React
Hooks (such as the useState hook) to manage state.
State should be initialized in the constructor() method of a class component, and
it can be accessed using this.state.
Example of using state in a class component:
jsx
Copy code
import React from 'react';
class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
count: 0, };}incrementCount() { this.setState({ count: this.state.count + 1
});
12
CONCLUSION
This internship report encapsulates the practical experience and insights gained
during the tenure of the internship at the Scontinent Technologies. As a final year
BCA student from SBRR Mahajana's First Grade College, Mysore, the focus of
the internship was on Full Stack Web Development.
The report outlines the objectives, methodologies, and key findings of the
internship project, shedding light on the application of theoretical knowledge in
real-world scenarios. It discusses the challenges encountered and the strategies
devised to overcome them, showcasing adaptability and problem-solving skills.
13