ComponentDoesWhat? React Native Cheat Sheets – Erin Fox – Medium

  • React Native Cheat SheetsBefore I started my job at Major League Soccer, I only had one week of React training.
  • Great news when I was about to join a team of React engineers to rebuild their mobile app in React Native, right?Over 6 months have gone by now and I have learned SO MUCH, it’s crazy.
  • (oh, but ++ because it’s build in React)Flex of Dror BiranThere’s been days when I wanted to pull my hair out because my flex style properties weren’t working the way I wanted them too.
  • Even the zombies help.SVG feel like an SVG queen whenever I use this handy conversion site.Easing only is it really fun to hover over all of these functions to see their animations, it’s really helpful.Images (when you have spend way to much time trying to find placeholder photos.
  • Command r. Command much (almost) everything you need to get started with GraphQL is here.

Before I started my job at Major League Soccer, I only had one week of React training. Great news when I was about to join a team of React engineers to rebuild their mobile app in React Native…
Continue reading “ComponentDoesWhat? React Native Cheat Sheets – Erin Fox – Medium”

Using Rent the Runway to Play With React Developer Tools

Using Rent the Runway to Play With React Developer Tools | SheNomads  #women_in_tech #reactjs

  • Using Rent the Runway to Play With React Developer Tools | SheNomads — Else if (@getelseif) December 6, 2016 – – We used Rent the Runway to talk about React Developer Tools.
  • More about React.js on SheNomads.com Rent the Runway has a tech blog: FOLLOW US ▹ INSTAGRAM…

We used Rent the Runway to talk about React Developer Tools. More about React.js on SheNomads.com Rent the Runway has a tech blog: http://dresscode.renttherunway.com/ FOLLOW US ▹ INSTAGRAM…
Continue reading “Using Rent the Runway to Play With React Developer Tools”

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”

Introducing form-for. ReactJS Forms Made Easy – Pedro Silva Moreira – Medium

Introducing form-for. #ReactJS Forms Made Easy

  • Binding componentsAs you can see on the code above, each field has a type set to it; some even have a couple extra properties.Now, we need to tell form-for what components to render.
  • I created a package for bootstrap components that makes your life veeery easy.
  • Building the formNow, let’s put together the User, the bootstrap components and the Form and Field tags.4.
  • The code is very straight forward, just like the one you saw above.And if you want more sandbox examples, I have two others in my profile: MobXFormFor goes really well with MobX.
  • If you don’t like comment too, lemme know how you think it could be

I’ve been coding for a few years and played with a few technologies. In this path, I’ve become a big fan of a Rails gem called simple_form. I’m also a fan of React. With these two in mind, I decided…
Continue reading “Introducing form-for. ReactJS Forms Made Easy – Pedro Silva Moreira – Medium”

A React Navbar Component by Dan on CodePen

A simple, responsive #Navbar using #ReactJS:  #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 render the component inside the tags in my index.html:

    Ok, so we have a basic component that renders an empty nav.

  • 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 and tags inside “navNarrow” an onClick:

    That just about wraps it up.

  • 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 for funsies:

    So by setting our icon to float: left, that’s taken care of.

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

The Creative Network Session 5 — GraphQL schema V1 – Fullstack Network – Medium

The Creative Network Session 5 — GraphQL schema V1  #react #graphql #reactjs

  • The Creative Network Session 5 — GraphQL schema V1Previous sessionsIntroduction sessionSetting up reduxHome Page with ReactSetting up GraphQLLast night we continued to work on the first version of our GraphQL schema.
  • Video here:We started setting up the tools of GraphQL such as Apollo in session 4.
  • This session our goal was to having a working schema enough to query data from our React component from Home Page, which looks like this:As you can see from the image, every Card looking object is suppose to be a single post, containing name, description, tags and other pieces of information.
  • We decided to name this a Topic in our schema, and we can query the GraphQL for all or single Topic object with its related data.Code is relative simple, and we ended up having a schema looking like thistype Topic { id: String title: String description: String thumbnail: String tags: [Tag]}type Tag { id: String name: String}type Query { allTopics: [Topic]}schema { query: Query}This would allow us to query our server side with queries such as this:{ allTopics { id title description thumbnail tags { id name } }}And result would look like thisNow that we have a working version of the GraphQL schema for the home page, we realize that it would be difficult to continue building the schema, because we are not sure what kind of content and data structure the client side would need.
  • So we decided now is a good time to go back to our React client.We are also planning to deploy the server side code to Heroku so everyone can play around, stay tuned!

We started setting up the tools of GraphQL such as Apollo in session 4. This session our goal was to having a working schema enough to query data from our React component from Home Page, which looks…
Continue reading “The Creative Network Session 5 — GraphQL schema V1 – Fullstack Network – Medium”