Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: save/load snippet #5

Merged
merged 3 commits into from
Mar 26, 2018
Merged

feat: save/load snippet #5

merged 3 commits into from
Mar 26, 2018

Conversation

ptbrowne
Copy link
Contributor

@ptbrowne ptbrowne commented Mar 25, 2018

Ability to save snippets from the coding area to localstorage

image

@ptbrowne ptbrowne requested a review from drazik March 25, 2018 21:26
@ptbrowne
Copy link
Contributor Author

It is along the same idea of #3 but this is not separated by domain.

import './style.css'

const wrapInTry = code => {
return `try{ ${code} } catch (e) {e}`
}

const snippets = mkStore('snippet__')

class SnippetSelector extends React.Component {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be great to put this component in its own file, so we don't overload this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, I knew you were going to say this :D

Copy link
Contributor

@drazik drazik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a proposal, otherwise LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants