How to use react-blur - 1 common examples

To help you get started, we’ve selected a few react-blur 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 javierbyte / react-blur / src / js / app.jsx View on Github external
var React = require('react'),
    Blur = require('react-blur').default,
    ReactDOM = require('react-dom');

var App = React.createClass({

    getInitialState: function() {
        return {
            radius: 0,
            img: 'assets/img.jpg'
        }
    },

    componentDidMount: function() {
        {/* twitter button */}
        (function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}})(document, 'script', 'twitter-wjs');
    },

react-blur

React component for creating blurred backgrounds.

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Popular react-blur functions