All You Need To Know About CSS-in-JS – Hacker Noon

  • CSS-in-JS attached a style tag on top of the DOM while inline styles just attached the properties to the DOM node.Why does this matter?Not all CSS features can be aliased with JavaScript event handlers , many pseudo selectors aren’t possible, styling the html and body tags isn’t supported etc.With CSS-in-JS, you…
  • Some libraries (like jss, styled-components) even add support for neat, non-CSS-native features like nesting!Brilliant article going in depth on how they’re different.“Just write the darn CSS in CSS and be done with it.”Yes — while that’s the case for how it’s been done for a long-long time — the challenge is modern web is…
  • Shout-out to Vue for solving this problem beautifully even tho Vues styles have no access to components state.Here’s Bob Ross painting rocks to cool down the tension 😄What are the benefits of using CSS-in-JS?
  • CSS-in-JS leverages the full power of the JavaScript ecosystem to enhance CSS.“True rules isolation” — Scoped selectors are not enough.
  • JSS generates unique class names by default when it compiles JSON representation to CSS.Vendor Prefixing —The CSS rules are automatically vendor prefixed, so you don’t have to think about it.Code sharing — Easily share constants and functions between JS and CSS.Only the styles which are currently in use on your screen are…

TL;DR: Thinking in components — No longer do you have to maintain bunch of style-sheets. CSS-in-JS abstracts the CSS model to the component level, rather than the document level (modularity). You…
Continue reading “All You Need To Know About CSS-in-JS – Hacker Noon”

.@reactjs Express: Learn #ReactJS with Interactive Examples: #JavaScript

.@reactjs Express: Learn #ReactJS with Interactive Examples:  #JavaScript

  • React is a framework for building performant interfaces for the web and other platforms.
  • You should use this guide as a companion to the official Facebook documentation for getting started .
  • I hope you enjoy learning React.
  • When you write your first React app, you might start with something like this.
  • While these things aren’t required to write React, most React developers use them because they tend to be easier to use and more maintainable.

Learn React with interactive examples.
Continue reading “.@reactjs Express: Learn #ReactJS with Interactive Examples: #JavaScript”

React-motion 101: Springs – Bjorn Holdt – Medium

React-motion 101: Springs  #reactjs #reactmotion #javascript #react #animation #reactjs

  • Box 2 is different.
  • Instead the law of physics, in particular a spring, was used to create the animation.
  • You can tell a spring was used because towards the end of the animation, it takes a while for the box to settle into its final position.
  • Box 1, 3 and 4 animation will look a bit jarring if we interrupt it.
  • Box 2 on the other hand handles the change gracefully and naturally springs into its new position (play around with these values on codepen)Stiffness and damping to change animationIn a spring animation, there are two variables you can control: stiffness and damping.

Boxes 1, 3 and 4 all used different timing functions (ease-in, ease-out, linear). However, they were all timed animations set to run for 500ms. Box 2 is different. The animation wasn’t set to run for…
Continue reading “React-motion 101: Springs – Bjorn Holdt – Medium”

Comparing AngularJS and ReactJS for Development

Comparing AngularJS and ReactJS for Development
#AngularJS #ProductDevelopment #ReactJS

  • In the last couple years DashBouquet team had a great number of various projects, among which were the ones on Angular, Angular2 and React.
  • Here is a table, in which we give pros and cons for AngularJS and ReactJS:

    Developers tend to choose Angular over React, which is an advantage because in this scenario, it is more convenient to work with the framework.

  • On the contrary, no such problems appeared while working with Angular2 and React, due to predictable state containers and immutables.
  • As for React and Angular2 cons, one of the biggest issues is lack of good developers.
  • Despite the fact that React is quite small framework, there are still a lot of things for developers to consider: state management, interaction with sever, testing and so on.

Developers tend to choose AngularJS over ReactJS, which is an advantage because in this scenario, it is more convenient to work with the framework.
Continue reading “Comparing AngularJS and ReactJS for Development”

CLI: Add support for templates fetched from npm by mkonicek · Pull Request #12548 · facebook/react-native · GitHub

  • Summary: This PR allows anyone to publish templates for React Native.
  • It’s possible for people to publish modules for React Native, we should also support custom templates.
  • A suggestion from a Cordova mantainer where they did the same thing suggests this is useful: mkonicek/AppTemplateFeedback#1 I published a sample template (GitHub: With this PR anyone can then use that template: `react-native init MyApp –template demo` The convention is: if someone publishes an npm package called `react-native-template-foo`, people can use it by running `react-native init MyApp –template foo`.
  • Use a template called `react-native-template-demo` from npm: `react-native init MyApp –template demo` Use a local template: `react-native init MyApp –template Closes #12548 Differential Revision: D4620567 Pulled By: mkonicek fbshipit-source-id:

react-native – A framework for building native apps with React.
Continue reading “CLI: Add support for templates fetched from npm by mkonicek · Pull Request #12548 · facebook/react-native · GitHub”

Angular or React

#AngularJS or #ReactJS? Try both, it’s worth it!  #JavaScript

  • How I can communicate between components redux used also in angular with different implementations like @ngrx/store !!!!
  • Ok let’s continue and see how we can pass parameters inside to our component.
  • Ok let’s go ahead and see the result of my first react application.
  • React manage in different way properties and state, we saw already the properties but what I didn’t understood was that the properties can’t be changed by the component.
  • declare a variable and use it (line 3 and line 9);

Say that angular is better of React or vice-versa is not something that really make sense. You should try both of them to understand which one is better
Continue reading “Angular or React”

How to Create a Redux-Form with Validation and Initialized Values

Create a Redux-form with validation and initialized values:  #ReactJS

  • const form = reduxForm({ form: ‘ReduxFormTutorial’, validate });
  • The form we’re making is connected to our application state, and will have an awareness of the actions we’ve created elsewhere in the project.
  • The syntax of Redux-Form has been modified to streamline and simplify the process of creating and managing your forms.
  • The tutorial is going to help you set up a Redux-Form that uses the latest syntax, and how to get that form set up with some simple validation and initial values.
  • Handling the validation of our form can get messy if we do it “inline” as part of the render function of our component.

Read the full article, click here.


@ReactiveConf: “Create a Redux-form with validation and initialized values: #ReactJS”


You want your React app to have an intelligent form that validates the data being input before sending it off to your API. You want it to be easy and straightforward to implement with the features you’d expect. Features like setting initial values of your fields. Luckily for you, Redux-Form makes all that a breeze. Even better, with the latest release candidate (Redux-Form 6.0.0rc3), you can upgrade to the latest version of React and not have those pesky unknown props errors bring your project to a screeching halt.


How to Create a Redux-Form with Validation and Initialized Values