Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Content Preview UI Element doesn't display file content in ReactJS created with create-react-app

Répondu
Nouvelle publication

Commentaires

1 commentaire

  • FranklinPOC

    Great support from Box crew. 

     

    SOLUTION:  The CSS is a must to define the size of the Preview container; or else it defaults to size 0 (zero) hence the body of file is not displaying.

     

    .container {
      height: "100%";
      width: "100%"
    }

     

     

    ".container" is whatever is containing the ContentPreview element.

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.