State tree
{
'input': 'R',
'filtered_entries': ['Ross', 'Rachel'],
'entries': ['Ross', 'Rachel', 'Joey']
}
{
'input': '',
'filtered_entries': ['Ross', 'Rachel', 'Joey'],
'entries': ['Ross', 'Rachel', 'Joey']
}
{
'input': 'R',
'filtered_entries': ['Ross', 'Rachel'],
'entries': ['Ross', 'Rachel', 'Joey']
}
- npm start: node index
- express app
- web pack.config
- entry = ./client/entry.jsx
- new webpackdevserver
- ./client/entry.jsx
- React.render(<Component โฆ/>, dom element)
- ./client/entry.jsx