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”

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”

Ionic 2 vs ReactNative vs NativeScript

Ionic 2 vs ReactNative vs NativeScript:  via @discoversdks #JavaScript #ReactJS

  • We have witnessed hybrid mobile application development frameworks that allow you to use the basic website languages like HTML, CSS and JavaScript for developing mobile apps, and then we witnessed the native frameworks that not only allow you to use web tools for mobile development, but they also use the native API of Android or iOS (for UI and other functionalities) rather than imitating the native look!
  • We have seen several mobile development frameworks already, thanks to the speed it takes to develop new technologies from old technologies, we received the gold in the form of Ionic 2, React Native and NativeScript.
  • The interesting thing about hybrid apps is that they are hosted inside a native application which uses the WebView – which is kind of browser-less web pages loader, so you get access to mobile functionalities, such as, camera, contacts, gyroscope, etc. through website languages, like HTML, XML, CSS, etc.
  • WebView provides widgets that are different from browser web pages, and so all the web errors are ignored, because the purpose is to provide the HTML canvas for the app files to load onto it rather than the actual web pages functionalities and therefore the mobile applications are created just with the knowledge of website development.
  • This has a good effect on UX, as the user can have the similar experience of a native app, secondly, this is not a browser-based app like in PhoneGap/Cordova of Ionic, so the implementation is faster and runs quicker in mobile devices.

Ionic 2 vs React Native vs NativeScript – What to choose for mobile development – DiscoverSDK Blog
Continue reading “Ionic 2 vs ReactNative vs NativeScript”

Use Vue.js to create custom web components – Vue.js Tips

  • See browser support for Web Components on are-we-componentized-yet or caniuse.com

    But, with a bit of JS magic you can now turn your Vue.js component into web components, enabling you to use it in any web application, even using React, Angular or is a library written by @karol-f that allows you to use a Vue.js component as a custom element.

  • Once you register the custom element, you can insert its tag into standard HTML, SPA’s, React, Angular or Vue.js projects.
  • js file embedding Vue itself, the lib and your Vue.js components, registered to be used as custom elements.
  • Registering a custom element is done by using

    Note that is called when the element is inserted

    Also, the component’s tag has to meet a few requirements :

    More details in the W3C specs

    The custom element’s markup can be embedded in a tag inside the DOM.

  • I thought it would confuse developers that focus on porting their Vue.js components to custom elements.

Include Vue.js components in any HTML/JS application
Continue reading “Use Vue.js to create custom web components – Vue.js Tips”

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”