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

Answered
New post

Comments

1 comment

  • 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
    Comment actions Permalink

Please sign in to leave a comment.