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
should have extra={{className:'myImg'}} instead of extra={{className='myImg'}}. Otherwise Babel won't transpile the component and will generate an error like:
The documentation on this link https://www.npmjs.com/package/react-picture has an error.
return ( <Img alt='Your picture description' srcSet={imgs} extra={{className='myImg'}}/> );
should have
extra={{className:'myImg'}}
instead ofextra={{className='myImg'}}
. Otherwise Babel won't transpile the component and will generate an error like:SyntaxError: /app/components/picture/Picture.js: Unexpected token (17:52) const myClassName = "mcdonald" return ( <Img alt={props.alt} srcSet={imgs} extra={{style="none"}}/> ); };
The text was updated successfully, but these errors were encountered: