You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Through issue #532 and commit #534, a clearer error message has been added to indicate that a valid component has not been provided in the story.
However, the error message should be clearer and actionable. I misread the current error message as recommending the ()=>{} syntax!!
Current message:
Expecting a React element from the story: "basic" of "Game of Life".
Did you forget to return the React element from the story?
Maybe check you are using "() => {<MyComp>}" instead of "() => (<MyComp>)" when defining the story.
Proposed message:
Expecting a React element from the story: "basic" of "Game of Life".
Did you forget to return the React element from the story?
Use "() => (<MyComp/>)" or "() => { return <MyComp/>; }" when defining the story.
Thanks
Rajeev
The text was updated successfully, but these errors were encountered:
Through issue #532 and commit #534, a clearer error message has been added to indicate that a valid component has not been provided in the story.
However, the error message should be clearer and actionable. I misread the current error message as recommending the ()=>{} syntax!!
Current message:
Proposed message:
Thanks
Rajeev
The text was updated successfully, but these errors were encountered: