Building a Wizard / Workflow in React – Entelo Engineering

Building a Wizard / Workflow in React  #react #reactjs #tutorial #reactjs

  • Here are just a few examples:User Registration with multiple formsBreaking large forms into smaller stepsE-commerce checkout flowMulti-page surveysI’ve had previous experiences building out a checkout flow for e-commerce companies, but this was the first time I had to build a workflow using React.Here is the design and the approach I…
  • Finally, we end the workflow with a confirmation page.Each step of the workflow is a separate route we will define in our routes file when using react-router.
  • As we navigate from one step to the next, we will advance the progress bar along with rendering a new container with the next step’s contents.Choosing a Progress BarFor the progress bar, we decided to use the libraryThis is a very simple progress bar and the API is straightforward.
  • Below are some examples of what the progress bar looks like as we move from one step to the next.First StepNext Step to show progression in the workflowFinal StepReact RouterSet up the route to determine what step of the flow we are in.Route path=”jobs/:id/:step” /The id and step will be passed…
  • In the component, we will create a switch case statement to determine what component to render.switch (step) { case (‘description’): return (DescriptionContainer /); case (‘criteria’): return (CriteriaContainer /); …}We also use this stepvalue to calculate the progress bar distance and what progress label should be bold.ContainersWe have a series of…

One of my first tasks at Entelo was to work on a greenfield project that involved a step-by-step wizard. Workflows/wizards are useful when you want the end-user to complete a series of steps. (I’ll…
Continue reading “Building a Wizard / Workflow in React – Entelo Engineering”

React Animations 101: CSS transitions – Bjorn Holdt – Medium

React Animations 101: CSS transitions  #javascript #animation #css #react #reactjs

  • Examples with React and CSS transitionsHow do we use CSS transitions in react?Progress bar example (Codepen)Let’s start off with a progress bar first.
  • progress { transition: width 100ms ease-in-out;}Without CSS transitions whenever the progress bar updates, it would expand to its new width immediately.
  • In this case, when the navigation bar is visible the slideIn class is applied, when it is not visible the slideOut class is applied.The Navigation Bar Component (on codepen)const Navbar = ({ visible }) = ( div id=”navbar” className={visible ?
  • slideIn { transform: { transform: translateX(-220px);}Codepen exampleWe use the transform property in CSS to position the navigation bar.
  • slideOut will move the element completely out of view again.With the CSS transition, we tell the browser whenever there is a change to the transform property (in this case when the element’s position is changed), animate the change over 400ms.

If you were to follow my learning path to get a navigation bar animation working with react, you will end up with a combination of react-motion, ReactCSSTransitionGroup, yet-another-react-animation…
Continue reading “React Animations 101: CSS transitions – Bjorn Holdt – Medium”

Deco

Big news! Deco, the React Native IDE, is now available for download:  #reactnative #react

  • An input field for choosing a date.
  • Then insert the component with one click and customize.
  • Each component has a convenient thumbnail preview to help you find the right one.
  • An input field for choosing one option from a list.
  • Search for existing open-source React Native components to accelerate your development.

Read the full article, click here.


@decoapp: “Big news! Deco, the React Native IDE, is now available for download: #reactnative #react”


Search for existing open-source React Native components to accelerate your development. Each component has a convenient thumbnail preview to help you find the right one.


Deco