Are you sure you're getting this? Click the correct answer from the options.
Which of the following is a recommended best practice for establishing a database connection in a React application?
Click the option that best answers the question.
- Establish the connection directly in the component's render method
- Include sensitive database credentials in the client-side code
- Encrypt the database credentials before storing them
- Store the database credentials in plain text