Coder Social home page Coder Social logo

atom-source-preview-react's Introduction

source-preview-react package

source-preview provider for react

Settings

  • jsxHarmony: shortcut to enable ES6 & ES7 transforms (default: false)

Requirement

atom-source-preview-react's People

Contributors

aki77 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

atom-source-preview-react's Issues

How to setup Atom so that React.js 15.10 starter kit examples work in Atom

I've download Atom 1.7.4 to both Windows 10 and Ubuntu 15.10, installed Atom's react and source-preview-react packages. Used Atom to open folder with react-15.1.0/examples. Clicked on index.html in basic example. Ctlr-shift-M. I get this "If you can see this, React is not working right. If you checked out the source from GitHub make sure to run grunt." This happens on both Windows 10 and Ubuntu 15.10.

Can anyone let me know how to get this working properly. I also tried atom-react-preview package and this failed to install with known error.

Using npm to install react and using explorer to view file tree every examples works as specified.
image

Cannot work with .cjsx files

Using atom 1.30, language-cjsx 0.3.0, source-preview 0.4.2. Keep getting compile errors on '<' or '/'.

My code:

# @cjsx React.DOM
React = require('react')

Car = React.createClass
  render: ->
    <div>Hello, world.</div>

The code can be compiled to js with react-coffee. It seems source-preview still treats cjsx files as coffee. I tried disable the builtin coffee provider of source-preview but it didn't work.
I'm new to atom world. Am I missing something important?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.