react-compound-slider — React compound slider | Next level slider component 🎰 #ReactJS

react-compound-slider — React compound slider | Next level slider component 🎰   #ReactJS

  • To install and save in your dependencies, run: – – This library takes a compound component approach to creating sliders that separates the data/logic from presentation.
  • The components use the function as child components pattern.
  • By taking this approach it also frees you up to render whatever markup you want to customize your slider.
  • In general slider components are composed of a relatively positioned outer div with elements absolutely positioned inside by a percentage.
  • In this library the , , and components are used as children to the component and they let you tap into a stream of values and percentages that you can then use to render your own components.

react-compound-slider – React Compound Slider | Next Level Slider Component :slot_machine:
Continue reading “react-compound-slider — React compound slider | Next level slider component 🎰 #ReactJS”

A React Navbar Component by Dan on CodePen

A simple, responsive #Navbar using #ReactJS:  @CodePen #Coding

  • I’m going to give it a name of NavComponent because that just makes way too much sense, and inside the render function, toss in an empty (for now) set of tags to wrap around everything else that will go in there: – – And underneath all that I’m going to…
  • This will give my a “hamburger” icon (courtesy of Font Awesome) for smaller screens that need a drop down menu.
  • Since our drop-down menu is contained in the “narrowLinks” className, we’re going to target that in our function: – – And then tell our function to toggle the drop-down based on its current CSS display value: – – And to make the new function work, we need to give our…
  • I obviously don’t want to see both sets of links all the time, and since we’re using mobile-first design, we’re going to set our “navWide” links to hidden: – – And we’re also going to stick our hamburger icon and drop-down links on the left side of the screen, just…
  • And finally a media query to switch between our mobile drop-down menu and our larger screen mode with just a row of our links: – – For a working example, click here.

I use React a lot, and I use navbars a lot, so this was just an obvious one for me. This is nothing extravagant. I’m not using React Router in this example, just some tags. But it is responsive, so that’s fun.
Continue reading “A React Navbar Component by Dan on CodePen”

React.js Weekend Training Tickets, Sat, Dec 9, 2017 at 9:00 AM

Sign up for this weekend's course here:

  • This course is intended for developers with intermediate JavaScript experience who want to understand the fundamentals, principles, and capabilities of React.
  • You will learn development principles of the React.js framework by diving hands-first into working examples.
  • You will gain the skills you need to immediately implement React.js in your applications using professional test-driven development tools and methodologies.
  • Senior Software Engineer and Instructor, Troy Miles will guide you through the development of a real-world application using React and AWS.
  • Instructor, Troy Miles – – Troy Miles is a Senior Software Engineer and Lynda.com instructor.

Eventbrite – Code District presents React.js Weekend Training – Saturday, December 9, 2017 | Sunday, December 10, 2017 at Cowork South Bay, Torrance, CA. Find event and ticket information.
Continue reading “React.js Weekend Training Tickets, Sat, Dec 9, 2017 at 9:00 AM”

Check out the first people on our lineup: #ReactJS #ReactAmsterdam

Check out the first people on our lineup:  #ReactJS #ReactAmsterdam

  • React Amsterdam is a celebration of good things coming together: – – React that rocks and spring in Amsterdam that blossoms – – A full-day, two-track conference on all things React, gathering Front-end and Full-stack developers across the globe in the tech heart of Europe.
  • Mark your calendars for the biggest React community event.
  • Check out the the after-movie and mood videos from React Amsterdam 2017 edition: – – Check out our YouTube channel for more talk recordings of previous editions and meetups.

React Amsterdam is a full day two-track conference of all things React, gathering Front End developers across the globe in the tech heart of Europe.
Continue reading “Check out the first people on our lineup: #ReactJS #ReactAmsterdam”

What’s New With Server-Side Rendering in React 16 – Hacker Noon

What’s New With Server-Side Rendering in React 16:  by @xander76 #JavaScript #ReactJS #NodeJS

  • Naturally, this feature is also supported by React 16’s server-side rendering.So, you can now server-render components that look like this:class MyArrayComponent extends React.Component { render() { return [ div key=”1″first element/div, div key=”2″second element/div ]; }}class MyStringComponent extends React.Component { render() { return “hey there”; }}class MyNumberComponent extends React.Component {…
  • To learn more about this feature, read Dan Abramov’s post on the React blog about the change.React 16 SSR Doesn’t Support Error Boundaries or PortalsThere are two new features in the React 16 client-side renderer that are unfortunately not supported in the server-side renderer: Error Boundaries and Portals.
  • If for any reason there’s a mismatch, React raises a warning in development mode and replaces the entire tree of server-generated markup with HTML that has been generated on the client.In React 16, though, the client-side renderer uses a different algorithm to check that the server-generated markup is correct.
  • And when the client-side renderer in React 16 detects a markup mismatch, it only attempts to change the HTML subtree that doesn’t match, rather than the entire HTML tree.Generally, this change shouldn’t have much effect for end users, except for one fact: React 16 doesn’t fix mismatched SSR-generated HTML attributes…
  • This performance optimization means that you will need to make extra sure that you fix any markup mismatch warnings you see in your app in development mode.React 16 Doesn’t Need To Be Compiled For Best PerformanceIn React 15, if you used SSR straight out of the box, performance was less…

There are lots of exciting new bits (most notably the Fiber rewrite), but personally, I’m most excited about React 16’s many improvements that have been made to server-side rendering. Let’s take a…
Continue reading “What’s New With Server-Side Rendering in React 16 – Hacker Noon”

Passing Functions to Components

  • Pass event handlers and other functions as props to child components: – – If you need to have access to the parent component in the handler, you also need to bind the function to the component instance (see below).
  • There are several ways to make sure functions have access to component attributes like and , depending on which syntax and build steps you are using.
  • In JavaScript, these two code snippets are not equivalent: – – Binding methods helps ensure that the second snippet works the same way as the first one.
  • Make sure you aren’t calling the function when you pass it to the component: – – Instead, pass the function itself (without parens): – – You can use an arrow function to wrap around an event handler and pass parameters: – – This is equivalent to calling : – -…
  • is a way of queuing a function to be executed in the browser at the optimal time for rendering performance.

If you need to have access to the parent component in the handler, you also need to bind the function to the component instance (see below).
Continue reading “Passing Functions to Components”

React UI Frameworks, Compared – Gather Engineering

React UI Frameworks, Compared  #reactjs #semanticui #antdesign #react #javascript #reactjs

  • Created by Alibaba, Ant Design React includes a great many polished and usable components — probably more than any other React UI library.Ant Design (Date Range Picker)Component Breadth: A+Every component we needed is included.Quality of implementation: AGood-looking components, plenty of options and interoperability.Ease of re-styling: B+Themeable, but not built for overhaul.Typescript support: A+Written…
  • Typescript support: FDoes not appear to have any TypeScript typings.Quality of documentation: BInteractive examples of each component, but nothing else about the framework itself.Project health: B~1.5K Github stars, maintained by open-source contributors.Cost: FreeAn implementation of the popular Semantic UI framework, this library is polished has a lot to offer, but…
  • Type bindings are still in development, but are included for most components.Quality of documentation: A+Interactive examples of each component, clear navigation information on theming, component options, and sample layouts.Project health: B~1.5K Github stars, maintained by open-source contributors.Cost: FreeSencha’s React UI framework is costly each year, but its breadth of components,…
  • Ease of re-styling: A+Clear documentation on theming, four built-in themes (including Material Design and Bootstrap), and support for Sencha Themer.Typescript support: A+Written in TypeScript, with full bindings.Quality of documentation: AExamples of each component, with tons of options explained, but a bit confusing to navigate, and interactive examples are often limited…
  • It appears to simply be a set of wrappers for jQuery version.Kendo UI React (Dropdown)Component Breadth: A-Not as many components as the Angular/jQuery versions, but could be enough for many applications.Quality of implementation: ASeem robust, though the default style isn’t wonderful.Ease of re-styling: A+Clear documentation on theming, four built-in themes…

The open-source community around React is enormous, and we’re constantly seeing new solutions and approaches to solve the problems we have as developers. Looking into React UI libraries, we’ve come a…
Continue reading “React UI Frameworks, Compared – Gather Engineering”