INTERNSHIP REPORT - Aradhya
INTERNSHIP REPORT - Aradhya
INTERNSHIP REPORT - Aradhya
On React Js
SUBMITTED BY :- Aradhya
Semester – 7th
1|Page
CERTIFICATE
2|Page
ACKNOWLEDGEMENT
Apart from our efforts, the success of the internship depends largely on the
Kumar Singh) and our Head of the department Dr. Shambhu Shankar
Bharti for their cordial support as they gave the permission to use all
I would like to extend my sincerest gratitude to Polytropic Service Pvt. Ltd. and
Ananya Singh for his guidance and supervision as well as for providing
necessary information regarding the internship and also for the support in
internship.
3|Page
ABOUT THE COMPANY
4|Page
ABOUT THE INTERNSHIP
During the eight-week internship period from December 12, 2022, to February 6,
2023, I had the opportunity to complete an internship in front-end development
(FED) with Polytropic Service Pvt. Ltd. The program was conducted under the
guidance of Ananya Singh, a mentor and professional in the field.
The FED internship program at Polytropic Service Pvt. Ltd. aimed to provide
practical training and hands-on experience in developing websites and
applications. As an intern, I was immersed in various aspects of front-end
development, including user interface (UI) design, responsive web development,
and client-side scripting.
Throughout the internship, I was assigned several projects and tasks that allowed
me to apply the theoretical knowledge I gained during my technical education.
Working on real-world scenarios, I learned how to create visually appealing and
functional websites and applications using industry-standard technologies and
frameworks.
During the internship, I had the chance to work with a range of tools and
technologies commonly used in front-end development. This included HTML, CSS,
JavaScript, and popular libraries or frameworks like React or Angular. I gained
hands-on experience in creating responsive layouts, implementing interactivity,
and integrating with back-end APIs.
5|Page
INDEX
INTRODUCTION
SOFTWARE REQUIREMENTS
ANALYSIS
CONCLUSION
FUTURE SCOPE
REFERENCE
6|Page
INTRODUCTION
AGENDA
What is React?
Advantages & Disadvantages of React
Installation of React and creation of application, first app.
Get start with First-Project
React Components
ReactJS Lifecycle and Methods
State and Props in React
JSX (JavaScript XML): JSX is a syntax extension used in React to write HTML-like
code within JavaScript. It allows developers to combine JavaScript and HTML into
a single file, making it easier to understand and visualize the structure of
components.
7|Page
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
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
8|Page
> npm –v
>npm install -g
Functional Components:
function MyComponent(props) {
9|Page
Class Components:
render() {
Mounting Phase:
10 | P a g e
Updating Phase:
Unmounting Phase:
In React, both state and props are used to manage and pass data in components,
but they serve different purposes.
11 | P a g e
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.
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.
// ParentComponent.js
function ParentComponent() {
// ChildComponent.js
function ChildComponent(props) {
12 | P a g e
}
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.
jsx
Copy code
constructor(props) {
super(props);
this.state = {
13 | P a g e
Box Office app
I Creates a Box Office app that displays data about movies, shows, and
actors.
The Bollywood Box Office App has been introduced for the web users.
With the help of this app, you can now enjoy daily Box Office shows,
movies as well as about of actors and actresses.
Box office leaders, pictures, videos, behind the scenes, interviews and
official trailers!
Main Features: -
No setup or learning time required. Fire the app for the first time – and
immediately receive the latest movies.
- An awesome widget!
You can choose your own time-frame with one tap - latest, day or
week.
14 | P a g e
SOFTWARE REQUIREMENTS SPECIFICATIONS
Operating system: - Run in Every OS
BOX OFFICE
APP
15 | P a g e
SEARCH SHOWS SHOWS DATA
STARRED DATA
STARRED
16 | P a g e
17 | P a g e
Analysis Benefits of Project:
Indian film industry makes over 1000 movies annually of which a
substantial portion is produced by the popular Hindi film industry
known as Bollywood. The paper studies 50 Hindi movies from 2013 to
2017.
OTT stands for “Over The Top” and refers to any streaming service that
delivers content over the internet.
18 | P a g e
CODING AND OUTPUT
Index.js
import './index.css';
ReactDOM.render(
<HashRouter>
<App />
</HashRouter>,
document.getElementById('root')
);
// If you want your app to work offline and load faster, you can change
serviceWorker.unregister();
App.js
19 | P a g e
import { ThemeProvider } from 'styled-components';
const theme = {
mainColors: {
blue: '#2400ff',
gray: '#c6c6c6',
dark: '#353535',
},
};
function App() {
return (
<ThemeProvider theme={theme}>
<Switch>
<Home />
</Route>
<Starred />
</Route>
<Show />
</Route>
20 | P a g e
<Route>
<div>Not found</div>
</Route>
</Switch>
</ThemeProvider>
);
Home.js
import {
SearchInput,
RadioInputsWrapper,
SearchButtonWrapper,
} from './Home.styled';
21 | P a g e
return <div>No results</div>;
return results[0].show ? (
):(
);
return null;
};
apiGet(`/search/${searchOption}?q=${input}`).then(result => {
setResults(result);
});
};
ev => {
setInput(ev.target.value);
22 | P a g e
},
[setInput]
);
onSearch();
};
setSearchOption(ev.target.value);
}, []);
return (
<MainPageLayout>
<SearchInput
type="text"
onChange={onInputChange}
onKeyDown={onKeyDown}
value={input}
/>
<RadioInputsWrapper>
<div>
<CustomRadio
label="Shows"
23 | P a g e
id="shows-search"
value="shows"
checked={isShowsSearch}
onChange={onRadioChange}
/>
</div>
<div>
<CustomRadio
label="Actors"
id="actors-search"
value="people"
checked={!isShowsSearch}
onChange={onRadioChange}
/>
</div>
</RadioInputsWrapper>
<SearchButtonWrapper>
Search
</button>
</SearchButtonWrapper>
{renderResults(results)}
</MainPageLayout>
24 | P a g e
Show.js
/* eslint-disable no-underscore-dangle */
const { id } = useParams();
if (isLoading) {
if (error) {
return (
<ShowPageWrapper>
<ShowMainData
image={show.image}
name={show.name}
25 | P a g e
rating={show.rating}
summary={show.summary}
tags={show.genres}
/>
<InfoBlock>
<h2>Details</h2>
<Details
status={show.status}
network={show.network}
premiered={show.premiered}
/>
</InfoBlock>
<InfoBlock>
<h2>Seasons</h2>
</InfoBlock>
<InfoBlock>
<h2>Cast</h2>
</InfoBlock>
</ShowPageWrapper>
);
};
26 | P a g e
Output
27 | P a g e
28 | P a g e
29 | P a g e
Conclusion:
React JS has come at a good time helping the developers to build highly
engaging web apps and user interfaces within quick time. It allows you
to break down the components and create a single page application
with less coding.
Moreover, the virtual DOM also integrates the performance and React
JS is also known to be SEO friendly. You can develop large scale apps
with frequently changing data. It is due to these major advantages that
React JS has gained much spotlight.
Within our pages on this project you'll find worthy, concrete and timely
news about the industry, that emphasize not only the product but the
personalities also.
30 | P a g e
Future Scope :
React.js is a popular JavaScript library used for building user
interfaces, and its future scope looks promising. React Native is
used for mobile development, and server-side rendering is
becoming popular for SEO optimization. React 360 can be used
for building virtual and augmented reality applications, and
React.js can be used in the development of IoT and machine
learning applications. Overall, React.js is expected to continue
to be a popular choice among developers due to its versatility,
modularity, and efficiency in building complex web
applications.
Reference :
Report data: https://www.boxofficeindia.com
API: https://www.tvmaze.com/api
React: https://react.dev/
31 | P a g e