
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
source-react-coffee
Advanced tools
React in CoffeeScript without escaping into JSX or painfully contorting syntax.
This is an attempt to make Facebook's react library more usable from CoffeeScript without escaping into JSX or painfully contorting syntax. Here's what I have so far.
{React, Component, renderComponent} = require 'react-coffee'
class TodoList extends Component
render: ->
@ul ->
@li text for text in this.props.items
class TodoApp extends Component
getInitialState: ->
items: []
text: ''
onChange: (e) =>
@setState(text: e.target.value)
handleSubmit: (e) =>
e.preventDefault()
nextItems = @state.items.concat([@state.text])
nextText = ''
@setState(items: nextItems, text: nextText)
@refs.nameInput.getDOMNode().focus()
render: ->
@div ->
@h3 'TODO'
@component TodoList, items: @state.items
@form onSubmit: @handleSubmit, ->
@input onChange: @onChange, ref: 'nameInput', value: @state.text
@button "Add ##{@state.items.length + 1}"
component = new TodoApp()
renderComponent(component, document.getElementById('app'))
FAQs
React in CoffeeScript without escaping into JSX or painfully contorting syntax.
We found that source-react-coffee demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.