Q. What are the common errors while sending emails via SendGrid?
Common issues include incorrect API key permissions, exceeding rate limits, or invalid recipient addresses.
Q. Can you send HTML templates using SendGrid in Node.js?
Yes, you can include rich HTML content or even pre-designed SendGrid templates by specifying the html property in the email object.
Q. How do you secure SendGrid API keys in a Node.js app?
Store API keys in environment variables (process.env.SENDGRID_API_KEY) and load them using dotenv to prevent exposure in version control.
Q. How do you integrate SendGrid with Node.js?
Install the @sendgrid/mail package and configure it using your API key. Then, use the send() method to send customized emails with HTML templates or attachments.
Q. What is SendGrid and why is it used?
SendGrid is a cloud-based email delivery service used for sending transactional, marketing, and customized emails reliably via APIs or SMTP.
Q. What are the best practices for optimizing React Native hybrid apps?
Use FlatList for rendering lists, enable Hermes engine, minimize re-renders with React.memo, and use lazy loading for improved performance.
Q. How can you integrate native modules in a hybrid React Native app?
React Native supports custom native modules using bridge APIs, allowing developers to write platform-specific code when needed.
Q. What tools are required to set up a React Native development environment?
Developers need Node.js, npm/yarn, Android Studio (for emulator), and Xcode (for iOS builds). Expo CLI or React Native CLI can be used to scaffold the project.
Q. How do hybrid apps differ from native apps?
Hybrid apps use a single codebase across platforms but run inside a native wrapper, whereas native apps are platform-specific and written in Swift, Kotlin, etc.
Q. What makes React Native ideal for hybrid app development?
React Native allows building apps for both Android and iOS using a single JavaScript codebase while maintaining native-like performance and access to native APIs.