Responsive masonry layout with React & flexbox 😎

  • columns : p % columns – orderString += ` – :nth-child(${p}) { – order: ${order}; – } – ` – } – return orderString – } – – /** – * Generate media queries for configuration breakpoints – * This entails setting the width of Panels at different viewport width…
  • masonry-panel { – width: ${100 / columns}%; – ${css` – columns)}; – `} – } – } – ` – } – return mediaString – } – – /** – * The container for our Masonry layout – * If there is configuration and we have children, then generate media…
  • : ‘animation: fadeOut 1s’} – transition: visibility 1s linear; – } – ` – – /** – * Simple panel elements – * Don’t have anything special happening – * The masonry-panel class is exposed so can be styled with CSS – */ – const MasonryPanel = styled.div` – overflow:…
  • debounce(this.layout, 0)) – } – /** – * Wipe the component state and reset it default, Don’t think this is necessary as setState overrides anyway – */ – // reset = () = { – // // this.setState({ – // // heights: [], – // // loading: false, – //…
  • heights[order – 1]) heights[order – 1] = 0 – heights[order – 1] = heights[order – 1] + parseInt(height, 10) – } – this.setState({ heights }) – } – /** – * Set the layout height based on referencing the content cumulative height – * This probably doesn’t need its own…

I put together a “true” masonry layout [pen](https://codepen.io/jh3y/pen/vgZWZL) a while back. I’ve been asked a couple of times how I’d go about port…
Continue reading “Responsive masonry layout with React & flexbox 😎”

Simple SVG Dial in #react @CodePen @greensock @reactjs #svg #ui (might be useful!)

Simple SVG Dial in #react @CodePen  @greensock @reactjs #svg #ui (might be useful!)

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.


Continue reading “Simple SVG Dial in #react @CodePen @greensock @reactjs #svg #ui (might be useful!)”

Testing responsive grid design using CSS flex in @preactjs (@reactjs). Link:

Testing responsive grid design using CSS flex in @preactjs (@reactjs). Link:

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

Built in Preact.js….
Continue reading “Testing responsive grid design using CSS flex in @preactjs (@reactjs). Link:”

Bauble Toggle @CodePen @greensock @reactjs #svg #interactive #ChristmasIsComing

Bauble Toggle @CodePen  @greensock @reactjs #svg #interactive #ChristmasIsComing

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

Choose your colour! A bauble toggle made with SVG in ReactJS with GreenSock….
Continue reading “Bauble Toggle @CodePen @greensock @reactjs #svg #interactive #ChristmasIsComing”

I am Loving this Jelly Fish Splash React Animation see via @CodePen #ReactJs #React

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

Recreated https://dribbble.com/shots/2896850-Animated-DropSplash-Logo-Posibility with React and SVG…
Continue reading “I am Loving this Jelly Fish Splash React Animation see via @CodePen #ReactJs #React”

TypeScript 2.2 plays nice with React Native JavaScript

#TypeScript 2.2 plays nice with #ReactNative #JavaScript  by @pjkrill

  • Due this month, the upgrade also adds object type and removes restrictions on classes
  • Developers can write a function that takes a constructor, declares a class that extends the constructor, adds members to the new class, and returns the class itself.
  • JSX provides TypeScript with an embeddable XML-like syntax.
  • To improve support for the mixin pattern, restrictions have been removed on classes.
  • Version 2.2 also introduces an object type that lets a developer perform an object primitive type parameter, which should help catch a large class of bugs while more accurately modeling real-world code.

Due this month, the upgrade also adds object type and removes restrictions on classes
Continue reading “TypeScript 2.2 plays nice with React Native JavaScript”

React Native: styled-components

4 lines of code for a 'styled-components' API in React Native (excluding theming)

  • You can also add another Pen and it will pull the CSS from it.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • If the script you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen and we’ll pull the CSS from that Pen and include it.
  • HTML preprocessors can make writing HTML more powerful or convenient.

Playground for ‘react-native-web’. Use the https://rnplay.org native simulator to work with ‘react-native’….
Continue reading “React Native: styled-components”

react-d3-HOC-axis

Does it still count as a HOC even if you're wrapping a function in a Component? #reactjs

  • You can also link to another Pen and we’ll pull the CSS from that Pen and include it.
  • You can also add another Pen and it will pull the CSS from it.
  • You can also link to another Pen and we’ll pull the JavaScript from that Pen and include it.
  • You can apply CSS to your Pen from any stylesheet on the web.
  • HTML preprocessors can make writing HTML more powerful or convenient.


Continue reading “react-d3-HOC-axis”

The Just Enough Redux Reading List – Software Craftsman – Medium

The Just Enough Redux Reading List:  #ReactJS

  • I wanted to share the articles that helped me to get the Redux concepts & architecture
  • Let’s start with a couple of concepts behind the Redux architecture: Using High Order Components instead of mixins and Make the difference between Smart & Dumb Components .
  • To go further: Understand Redux Middleware and take a look at this list of everything .
  • It’s time to learn How to Bundle your Redux application and to Avoid the Bad & the Ugly .
  • Dive in Redux with a great video tutorial from the creator of redux himself and complete your exploration by reading this Super introduction to Redux & React .

I wanted to share the articles that helped me to get the Redux concepts & architecture
Continue reading “The Just Enough Redux Reading List – Software Craftsman – Medium”

React Image Search

bored in work training => unsplash image search w/ #reactjs



#webdev #webdevelopment #web

  • You can also add another Pen and it will pull the CSS from it.
  • You can also link to another Pen and we’ll pull the CSS from that Pen and include it.
  • You can also link to another Pen and we’ll pull the JavaScript from that Pen and include it.
  • Just put a URL to it and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • You can apply CSS to your Pen from any stylesheet on the web.

Read the full article, click here.


@TJ_egan: “bored in work training => unsplash image search w/ #reactjs

#webdev #webdevelopment #web”



React Image Search