Preact.js : Shopping Cart

@preactjs shopping cart with stock status. Link:  #preactjs #reactjs

  • 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 “Preact.js : Shopping Cart”

A very simple @CodePen example for using #ReactJS Router: #Coding

A very simple @CodePen example for using #ReactJS Router:  #Coding

  • 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.

Simple page navigation using React Router v2.8.1…
Continue reading “A very simple @CodePen example for using #ReactJS Router: #Coding”

2 Minutes to Learn React 16’s componentDidCatch Lifecycle Method

2 minutes to learn #ReactJS 16's componentDidCatch Lifecycle Method:

  • “Error boundaries are React components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI instead of the component tree that crashed.
  • Error boundaries catch errors during rendering, in lifecycle methods, and in constructors of the whole tree below them.”
  • -Dan AbramovYou can create an error boundary class component by defining a new lifecycle method componentDidCatch(error, errorInfo).
  • You can write one Error Boundary Component and re-use it throughout your app.Component All The ThingsIssues:¯\_(ツ)_/¯How do I use Error Boundaries?I’ve created a CodePen to demo the componentDidCatch() lifecycle method.
  • Error Boundaries will encourage JavaScript error reporting services that can be triggered within the componentDidCatch() lifecycle method in Production environments.For more details check out Error Handling in React 16 by Dan Abramov.Let me know in the comments how you use Error Boundaries in your apps!

You can create an error boundary class component by defining a new lifecycle method componentDidCatch(error, errorInfo). The first method parameter is the actual error thrown. The second parameter is…
Continue reading “2 Minutes to Learn React 16’s componentDidCatch Lifecycle Method”

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”

React Routing with this.props.children

Routing with #ReactJS using

  • 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.

An example of using React Router (2.8.1) and this.props.children to create page navigation….
Continue reading “React Routing with this.props.children”

Minimal Photo Gallery (ReactJS)

Minimal Image Gallery using @reactjs.  I'm very happy to be sharing on @codepen again! 🙌

  • 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.

Had this idea bubbling around in my head for a while for a simple photo gallery with animations. Decided to get some more React practice in and make it…
Continue reading “Minimal Photo Gallery (ReactJS)”

React.js drag&drop file upload – ReactJS News – ReactJS News – ReactJS News

RT @ReactJS_News Top q React.js drag&drop file upload – ReactJS News  #Co #java

  • You can apply CSS to your Pen from any stylesheet on the web.
  • 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.
  • You can also add another Pen and it will pull the CSS from 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.

simple file upload with drag & drop. Using a mock upload… @ReactiveConf: Create the drag&drop file upload in #ReactJS easily:
@ReactJS_News: New #design React.js drag&drop file upload via @ReactiveConf #javascript
@ReactJS_News: Top #q React.js drag&drop file upload – ReactJS News via @ReactJS_News #HT

Continue reading “React.js drag&drop file upload – ReactJS News – ReactJS News – ReactJS News”