Skip to content

rodrigoramosrs/react-fullscreen-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fullscreen any dom element with ReactJS

NuGet version

Installation

npm i react-fullscreen-element

Usage Example

import ReactFullScreenElement from "react-fullscreen-element";

class Demo extends React.Component {
    state={
        fullscreen: false
    }
    render(
        return(
            <div>

                <ReactFullScreenElement
                    fullScreen={this.state.fullscreen}
                    allowScrollbar={true}
                >
                <div>
                    <input type="button" value="Click here to toggle fullscreen" onClick={() => this.setState({fullscreen: !this.state.fullscreen})} />
                    your code goes here
                </div>
                    
                </ReactFullScreenElement>
            </div>

        )
    )


}

About

Fullscreen any dom element with ReactJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published