We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The default syntax is
export default function Home(){ // ... }
but when I use an arrow function
export default () => { // ... }
I get a blank page with 400 - Module "undefined" should export a React Component as default
400 - Module "undefined" should export a React Component as default
However, it works when declaring then exporting
const Home = () => { // ... } export default Home
or when using forwardRef
forwardRef
export default forwardRef((props, ref) => { // ... })
It would be great if we allowed arrow functions as well as regular functions, what do you think about it?
The text was updated successfully, but these errors were encountered:
sorry, alephjs will check the module's export default ensure it's a validate component:
/^[A-Z]/
best practice with arrow function is:
Sorry, something went wrong.
Merge pull request alephjs#21 from iFwu/patch-1
f460f38
doc: fix name placeholder for Dynamic API Routes
No branches or pull requests
The default syntax is
but when I use an arrow function
I get a blank page with
400 - Module "undefined" should export a React Component as default
However, it works when declaring then exporting
or when using
forwardRef
It would be great if we allowed arrow functions as well as regular functions, what do you think about it?
The text was updated successfully, but these errors were encountered: