# Using Scala.js with React and GraphQL

DevFeed: [Using Scala.js with React and GraphQL](<https://devfeed.tech/articles/using-scala-js-with-react-and-graphql-23502.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/scala-js-and-apollo-better-together-b066c6b09af4>)

Author: Shadaj Laddad

Published: 2017-08-08T18:08:00Z

Content type: tutorial

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [GraphQL](<https://devfeed.tech/topics/graphql.md>), [Scala](<https://devfeed.tech/topics/scala.md>), [apollo-client](<https://devfeed.tech/topics/apollo-client.md>), [React](<https://devfeed.tech/topics/react.md>), [Functional programming](<https://devfeed.tech/topics/functional-programming.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [source generators](<https://devfeed.tech/topics/source-generators.md>)

Tags: [apollo-client](<https://devfeed.tech/tags/apollo-client.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [functional-programming](<https://devfeed.tech/tags/functional-programming.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [react](<https://devfeed.tech/tags/react.md>), [scala](<https://devfeed.tech/tags/scala.md>), [source-generators](<https://devfeed.tech/tags/source-generators.md>), [webpack](<https://devfeed.tech/tags/webpack.md>)

## AI overview

This tutorial explains how to build Scala.js applications that use GraphQL and React. It introduces react-apollo-scalajs, a library that provides Scala facades and idiomatic Scala access to Apollo Client, then outlines project setup, query type generation, and a React UI example.

## Source excerpt

Scala is an excellent language for writing GraphQL apps, especially with the awesome Sangria library for writing GraphQL servers by Oleg Ilyenko. Scala is a powerful language, combining object oriented and functional programming concepts to make writing complex applications easy. The functional programming aspects of Scala are especially helpful when writing GraphQL schemas, allowing you to declare resolvers without any boilerplate.