How to use the react-responsive.default function in react-responsive

To help you get started, we’ve selected a few react-responsive examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LLK / scratch-www / src / views / splash / hoc / top-banner.jsx View on Github external
const FormattedMessage = require('react-intl').FormattedMessage;
const injectIntl = require('react-intl').injectIntl;
const React = require('react');

const MediaQuery = require('react-responsive').default;
const frameless = require('../../../lib/frameless');

const FlexRow = require('../../../components/flex-row/flex-row.jsx');
const TitleBanner = require('../../../components/title-banner/title-banner.jsx');

require('./hoc-banner.scss');

const TopBanner = () => (
    
        
            
                <h1>
                    
                </h1>
github LLK / scratch-www / src / components / footer / www / footer.jsx View on Github external
const FormattedMessage = require('react-intl').FormattedMessage;
const injectIntl = require('react-intl').injectIntl;
const intlShape = require('react-intl').intlShape;
const MediaQuery = require('react-responsive').default;
const React = require('react');

const FooterBox = require('../container/footer.jsx');
const LanguageChooser = require('../../languagechooser/languagechooser.jsx');

const frameless = require('../../../lib/frameless');

require('./footer.scss');

const Footer = props =&gt; (
    
        
            <div>
                <dl>
                    <dd>
                        <a href="/about"></a></dd></dl></div>
github LLK / scratch-www / src / views / splash / presentation.jsx View on Github external
const bindAll = require('lodash.bindall');
const FormattedMessage = require('react-intl').FormattedMessage;
const injectIntl = require('react-intl').injectIntl;
const intlShape = require('react-intl').intlShape;
const MediaQuery = require('react-responsive').default;
const PropTypes = require('prop-types');
const React = require('react');

const frameless = require('../../lib/frameless');
const sessionActions = require('../../redux/session.js');
const shuffle = require('../../lib/shuffle.js').shuffle;

const AdminPanel = require('../../components/adminpanel/adminpanel.jsx');
const Box = require('../../components/box/box.jsx');
const Button = require('../../components/forms/button.jsx');
const Carousel = require('../../components/carousel/carousel.jsx');
const DropdownBanner = require('../../components/dropdown-banner/banner.jsx');
const IframeModal = require('../../components/modal/iframe/modal.jsx');
const Intro = require('../../components/intro/intro.jsx');
const LegacyCarousel = require('../../components/carousel/legacy-carousel.jsx');
const News = require('../../components/news/news.jsx');
github LLK / scratch-www / src / views / preview / presentation.jsx View on Github external
const injectIntl = require('react-intl').injectIntl;
const PropTypes = require('prop-types');
const intlShape = require('react-intl').intlShape;
const FormattedMessage = require('react-intl').FormattedMessage;

const MediaQuery = require('react-responsive').default;
const React = require('react');
const Formsy = require('formsy-react').default;
const classNames = require('classnames');

const GUI = require('scratch-gui').default;
const IntlGUI = injectIntl(GUI);

const AdminPanel = require('../../components/adminpanel/adminpanel.jsx');
const decorateText = require('../../lib/decorate-text.jsx');
const FlexRow = require('../../components/flex-row/flex-row.jsx');
const Button = require('../../components/forms/button.jsx');
const Avatar = require('../../components/avatar/avatar.jsx');
const Banner = require('./banner.jsx');
const CensoredMessage = require('./censored-message.jsx');
const ModInfo = require('./mod-info.jsx');
const RemixCredit = require('./remix-credit.jsx');
github LLK / scratch-www / src / components / masonrygrid / masonrygrid.jsx View on Github external
const bindAll = require('lodash.bindall');
const classNames = require('classnames');
const MediaQuery = require('react-responsive').default;
const PropTypes = require('prop-types');
const React = require('react');

const frameless = require('../../lib/frameless');

require('./masonrygrid.scss');

class MasonryGrid extends React.Component {
    constructor (props) {
        super(props);
        bindAll(this, [
            'reorderColumns'
        ]);
    }
    reorderColumns (items, cols) {
        const a1 = [];
github LLK / scratch-www / src / components / info-button / info-button.jsx View on Github external
const bindAll = require('lodash.bindall');
const PropTypes = require('prop-types');
const React = require('react');
const MediaQuery = require('react-responsive').default;

const frameless = require('../../lib/frameless');

require('./info-button.scss');

class InfoButton extends React.Component {
    constructor (props) {
        super(props);
        bindAll(this, [
            'handleHideMessage',
            'handleShowMessage'
        ]);
        this.state = {
            visible: false
        };
    }
github LLK / scratch-www / src / views / splash / hoc / middle-banner.jsx View on Github external
const FormattedMessage = require('react-intl').FormattedMessage;
const injectIntl = require('react-intl').injectIntl;
const React = require('react');
const MediaQuery = require('react-responsive').default;
const frameless = require('../../../lib/frameless');

const FlexRow = require('../../../components/flex-row/flex-row.jsx');
const TitleBanner = require('../../../components/title-banner/title-banner.jsx');

require('./hoc-banner.scss');

const MiddleBanner = () =&gt; (
    
        
            
                <h1>
                    
                </h1>
github LLK / scratch-www / src / views / splash / feature / middle-banner.jsx View on Github external
const FormattedMessage = require('react-intl').FormattedMessage;
const injectIntl = require('react-intl').injectIntl;
const React = require('react');

const MediaQuery = require('react-responsive').default;

const FlexRow = require('../../../components/flex-row/flex-row.jsx');
const TitleBanner = require('../../../components/title-banner/title-banner.jsx');

const frameless = require('../../../lib/frameless');

require('./middle-banner.scss');

const MiddleBanner = () =&gt; (
    
        
            <h2>
                
            </h2>
            <h3>
                </h3>

react-responsive

Media queries in react for responsive design

MIT
Latest version published 8 months ago

Package Health Score

77 / 100
Full package analysis