---
source: crates/oxc_linter/src/tester.rs
expression: no_async_client_component
---
  ⚠ eslint-plugin-next(no-async-client-component): Prevent client components from being async functions.
   ╭─[no_async_client_component.tsx:3:1]
 3 │             
 4 │                   export default async function MyComponent() {
   ·                                                 ───────────
 5 │                     return <></>
   ╰────
  help: See: https://nextjs.org/docs/messages/no-async-client-component

  ⚠ eslint-plugin-next(no-async-client-component): Prevent client components from being async functions.
   ╭─[no_async_client_component.tsx:3:1]
 3 │             
 4 │                   export default async function MyFunction() {
   ·                                                 ──────────
 5 │                     return ''
   ╰────
  help: See: https://nextjs.org/docs/messages/no-async-client-component

  ⚠ eslint-plugin-next(no-async-client-component): Prevent client components from being async functions.
   ╭─[no_async_client_component.tsx:3:1]
 3 │             
 4 │                   async function MyComponent() {
   ·                                  ───────────
 5 │                     return <></>
   ╰────
  help: See: https://nextjs.org/docs/messages/no-async-client-component

  ⚠ eslint-plugin-next(no-async-client-component): Prevent client components from being async functions.
   ╭─[no_async_client_component.tsx:3:1]
 3 │             
 4 │                   async function MyFunction() {
   ·                                  ──────────
 5 │                     return ''
   ╰────
  help: See: https://nextjs.org/docs/messages/no-async-client-component

  ⚠ eslint-plugin-next(no-async-client-component): Prevent client components from being async functions.
   ╭─[no_async_client_component.tsx:3:1]
 3 │             
 4 │                   const MyFunction = async () => {
   ·                         ──────────
 5 │                     return '123'
   ╰────
  help: See: https://nextjs.org/docs/messages/no-async-client-component


