NeoSOFT
Endurance Technologies Interview Questions and Answers
Q1. What is Server Side Rendering and Static Site Generation?
Server Side Rendering (SSR) is the process of rendering web pages on the server side before sending them to the client. Static Site Generation (SSG) is the process of generating static HTML files at build time.
SSR improves performance by reducing the time to first paint and providing better SEO.
SSR can be implemented using frameworks like Next.js in React.
SSG pre-renders pages at build time, resulting in faster loading times and improved SEO.
SSG is commonly used in static sit...read more
Q2. What are staticSideProps and serverSideProps used for?
staticSideProps and serverSideProps are used in Next.js for data fetching and pre-rendering.
staticSideProps is used for pre-rendering static data at build time.
serverSideProps is used for pre-rendering dynamic data at request time.
staticSideProps is used for data that does not change frequently.
serverSideProps is used for data that changes frequently or needs to be fetched at request time.
Q3. What are fallback in getStaticPaths in NextJs?
Fallback in getStaticPaths in NextJs allows dynamic routes to be pre-rendered on-demand.
Fallback value can be true, false, or 'blocking'.
When fallback is true, Next.js will serve a static page for paths not generated at build time.
When fallback is 'blocking', Next.js will server a static page for paths not generated at build time, but will also server-render the page on the first request.
Fallback is useful for dynamic routes with a large number of possible values.
Q4. What is nextHat package in NextJs used for?
nextHat package in NextJs is used for server-side rendering and managing server-side logic.
nextHat package helps in handling server-side logic in NextJs applications
It allows for server-side rendering of pages in NextJs
nextHat package can be used for managing API calls and server-side data fetching
Q5. What is dynamic Import in NextJs?
Dynamic Import in NextJs allows for code splitting and loading components only when needed.
Dynamic Import in NextJs is a feature that allows you to import components asynchronously, improving performance by loading components only when needed.
It helps in code splitting, where different parts of the application can be loaded separately, reducing the initial load time.
Dynamic Import is achieved using the dynamic import() function in NextJs.
Example: const MyComponent = dynamic((...read more
Q6. What are PWA's?
PWA's are Progressive Web Applications that use modern web capabilities to provide a user experience similar to native mobile apps.
PWA's can work offline or on low-quality networks.
They can be installed on the user's device like a native app.
PWA's are built using web technologies like HTML, CSS, and JavaScript.
Examples of PWA's include Twitter Lite, Pinterest, and Starbucks.
Q7. Eager loading Vs Lazy loading?
Eager loading loads all related data upfront, while lazy loading loads data only when needed.
Eager loading is more efficient for small datasets or when all related data is needed at once.
Lazy loading is better for large datasets or when only specific data is needed.
Eager loading can lead to performance issues if unnecessary data is loaded, while lazy loading can cause additional queries to be made.
Examples: Eager loading in React can be achieved using libraries like Redux, wh...read more
Reviews
Interviews
Salaries
Users/Month